We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2bb2d33 + 7274998 commit 6c2589aCopy full SHA for 6c2589a
angular2/angular2-tests.ts
@@ -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