Skip to content

Commit 6c2589a

Browse files
committed
Merge pull request DefinitelyTyped#4290 from angular/angular2
Publish a minimal angular2.d.ts file for our quickstart
2 parents 2bb2d33 + 7274998 commit 6c2589a

File tree

2 files changed

+629
-0
lines changed

2 files changed

+629
-0
lines changed

angular2/angular2-tests.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/// <reference path="angular2.d.ts"/>
2+
3+
// Use Typescript 1.4 style imports
4+
import ng = require("angular2/angular2");
5+
6+
class Service {
7+
8+
}
9+
10+
class Cmp {
11+
static annotations: any[];
12+
}
13+
Cmp.annotations = [
14+
ng.Component({
15+
selector: 'cmp',
16+
injectables: [Service]
17+
}),
18+
ng.View({
19+
template: '{{greeting}} world!',
20+
directives: [ng.For, ng.If]
21+
})
22+
];
23+
24+
ng.bootstrap(Cmp);

0 commit comments

Comments
 (0)