Add typing for bind() which is also needed for demo

This commit is contained in:
Alex Eagle
2015-05-07 23:56:31 -07:00
parent 6c2589a633
commit 396000ead5
2 changed files with 23 additions and 2 deletions

View File

@@ -2,9 +2,13 @@
// Use Typescript 1.4 style imports
import ng = require("angular2/angular2");
import di = require("angular2/di");
class Service {
}
class Service2 {
}
class Cmp {
@@ -13,7 +17,7 @@ class Cmp {
Cmp.annotations = [
ng.Component({
selector: 'cmp',
injectables: [Service]
injectables: [Service, di.bind(Service2).toValue(null)]
}),
ng.View({
template: '{{greeting}} world!',