摘要:
1 at first, we use the (keyup) event handler to update the modify@Component({ selector: 'my-app'})@Template({ inline: '{{myName}}' + '' + ... 阅读全文
posted @ 2015-07-20 23:17
菠萝君
阅读(344)
评论(0)
推荐(0)
摘要:
1 import directive [For]import {Component, Template, bootstrap, For} from 'angular2/angular2'; it is important2 define your listclass MyApp { cons... 阅读全文
posted @ 2015-07-20 23:03
菠萝君
阅读(302)
评论(0)
推荐(0)
摘要:
1 add clock.es6 fileimport {Component, Template, bootstrap} from 'angular2/angular2';@Component({ selector:'clock'})@Template({ inline:'{{name}}... 阅读全文
posted @ 2015-07-20 22:40
菠萝君
阅读(383)
评论(0)
推荐(0)
摘要:
1 simple binding@Template({ inline:'{{myName}}'}) constructor() { this.myName = 'Jackey'; }2 local variables and event handler@Templ... 阅读全文
posted @ 2015-07-20 22:13
菠萝君
阅读(236)
评论(0)
推荐(0)
摘要:
1 download the angular2.0 demo from githubhttps://github.com/angular/quickstart2 new index.html 3 add app.es6import {Component, Template,... 阅读全文
posted @ 2015-07-20 21:59
菠萝君
阅读(216)
评论(0)
推荐(0)