脚本宝典收集整理的这篇文章主要介绍了First angular 2 app,脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
本文毫无意义,仅作记录而已,无需查看。
目录结构
Angular2-quickstart
-app
--app.component.ts
--boot.ts
-index.htML
-license.md
// app.component.ts
import {Component} from 'angular2/core';
@Component({
selector: 'my-app',
template: '<h1>my First Angular 2 App</h1>'
})
export class AppComponent { }
// app.boot.ts
import {bootstrap} from 'angular2/platform/browser'
import {AppComponent} from './app.component'
bootstrap(AppComponent);
@H_777_55@