Update angular2 to alpha32

This commit is contained in:
Alex Eagle
2015-07-24 13:44:58 -07:00
parent 178dee76b2
commit f6c8ca4719
4 changed files with 8428 additions and 2473 deletions
File diff suppressed because it is too large Load Diff
+13 -8
View File
@@ -1,8 +1,7 @@
/// <reference path="angular2.d.ts"/>
/// <reference path="router.d.ts"/>
// Use Typescript 1.4 style imports
import ng = require("angular2/angular2");
import {Component, View, Directive, bootstrap, bind, NgFor, NgIf} from "angular2/angular2";
class Service {
@@ -15,15 +14,15 @@ class Cmp {
static annotations: any[];
}
Cmp.annotations = [
ng.Component({
Component({
selector: 'cmp',
injectables: [Service, ng.bind(Service2).toValue(null)]
injectables: [Service, bind(Service2).toValue(null)]
}),
ng.View({
View({
template: '{{greeting}} world!',
directives: [ng.NgFor, ng.NgIf]
directives: [NgFor, NgIf]
}),
ng.Directive({
Directive({
selector: '[tooltip]',
properties: [
'text: tooltip'
@@ -35,4 +34,10 @@ Cmp.annotations = [
})
];
ng.bootstrap(Cmp);
@Component({selector: 'cmp2'})
@View({templateUrl: '/index.html'})
class Cmp2 {
}
bootstrap(Cmp);
+1
View File
@@ -0,0 +1 @@
--experimentalDecorators --target ES5
+2371 -2465
View File
File diff suppressed because it is too large Load Diff