mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
add test in gulpfile which will compile a basic TS file with generated angular2.d.ts to ensure generated d.ts is valid syntactic TS Adds support for enums in .d.ts generation pipeline. Removes renaming reexports in http module.
18 lines
No EOL
334 B
TypeScript
18 lines
No EOL
334 B
TypeScript
///<reference path="../dist/docs/angular2.d.ts"/>
|
|
|
|
import {Component, bootstrap, View} from 'angular2/angular2'
|
|
|
|
@Component({
|
|
selector: 'my-app'
|
|
})
|
|
@View({
|
|
template: '<h1>Hello {{ name }}</h1>'
|
|
})
|
|
// Component controller
|
|
class MyAppComponent {
|
|
name: string;
|
|
|
|
constructor() { this.name = 'Alice'; }
|
|
}
|
|
|
|
bootstrap(MyAppComponent); |