Skip to content

Instantly share code, notes, and snippets.

View mrjumpy's full-sized avatar

Will(崇韋) mrjumpy

View GitHub Profile
https://raw.githubusercontent.com
@mrjumpy
mrjumpy / gist:238ba88fe45a3804a6ff
Last active February 29, 2016 07:02
webdriver.io example
var webdriverio = require('webdriverio');
var options = { desiredCapabilities: { browserName: 'chrome' } };
var client = webdriverio.remote(options);
//start
client
.elements('.mo-menu-content .a').elementIdClick('77')
.elements('.mo-menu-set .a').elementIdClick('97')
.elements('.card-footer button').elementIdClick('101')//save
.elements('.mo-menu-sider .card-block').elementIdClick('103')

Angular 1.X 提供directive讓我們可以自訂屬性。 Angular 2. 的話。 大家可以先參考以下,稍微感覺一下我們可能會怎麼在它上面開發, 其實也是會有地方讓plugin去實作。 https://egghead.io/lessons/angular-2-angular-2-custom-events-es5

Angular 1.x 實作的方式可以是以下:

angular.module('myApp.directives', [])