随笔分类 -  Angular2.0

摘要:https://github.com/Jackey-Sparrow/Angular2-Contact-App 阅读全文
posted @ 2015-07-28 22:36 菠萝君 阅读(190) 评论(0) 推荐(0)
摘要:1 内联样式/** * Created by Administrator on 2015/7/23. */import {Component, View, NgIf} from 'angular2/angular2';@Component({ selector: 'ng-test', p... 阅读全文
posted @ 2015-07-26 09:30 菠萝君 阅读(436) 评论(0) 推荐(0)
摘要:1 normal component/** * Created by Administrator on 2015/7/23. */import {Component, View} from 'angular2/angular2';@Component({ selector: 'ng-test'... 阅读全文
posted @ 2015-07-25 12:03 菠萝君 阅读(2447) 评论(0) 推荐(0)
摘要:1 import Routerimport {RouteConfig, RouterOutlet, RouterLink, routerInjectables} from 'angular2/router';2 setting your RouteConfig@RouteConfig([ {p... 阅读全文
posted @ 2015-07-23 22:03 菠萝君 阅读(1874) 评论(1) 推荐(0)
摘要:1 import http and Injectimport {httpInjectables, Http} from 'angular2/http';import {Inject} from 'angular2/di'; 2 init your Http and use itclass App ... 阅读全文
posted @ 2015-07-23 21:55 菠萝君 阅读(573) 评论(1) 推荐(0)
摘要:1 basic usage1 import formDirectivesimport {formDirectives} from 'angular2/forms';2 inject directive into Viewdirectives: [formDirectives]3 config you... 阅读全文
posted @ 2015-07-21 21:24 菠萝君 阅读(403) 评论(0) 推荐(0)
摘要: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 菠萝君 阅读(346) 评论(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 菠萝君 阅读(307) 评论(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 菠萝君 阅读(387) 评论(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 菠萝君 阅读(240) 评论(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 菠萝君 阅读(219) 评论(0) 推荐(0)