@@ -4,7 +4,7 @@ import {EventListener} from 'angular2/src/core/facade/browser';
|
||||
import {FileReader, Uint8ArrayWrapper} from './file_api';
|
||||
import {TimerWrapper} from 'angular2/src/core/facade/async';
|
||||
|
||||
@Component({selector: 'image-demo', viewBindings: [BitmapService]})
|
||||
@Component({selector: 'image-demo', viewProviders: [BitmapService]})
|
||||
@View({templateUrl: 'image_demo.html', directives: [NgFor, NgIf, FORM_DIRECTIVES]})
|
||||
export class ImageDemo {
|
||||
images = [];
|
||||
|
||||
@@ -32,7 +32,7 @@ class RedDec {
|
||||
selector: 'hello-app',
|
||||
// These are services that would be created if a class in the component's
|
||||
// template tries to inject them.
|
||||
viewBindings: [GreetingService]
|
||||
viewProviders: [GreetingService]
|
||||
})
|
||||
// The template for the component.
|
||||
@View({
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {NgFor, View, Component, FORM_DIRECTIVES} from 'angular2/web_worker/worker';
|
||||
import {Store, Todo, TodoFactory} from './services/TodoStore';
|
||||
|
||||
@Component({selector: 'todo-app', viewBindings: [Store, TodoFactory]})
|
||||
@Component({selector: 'todo-app', viewProviders: [Store, TodoFactory]})
|
||||
@View({templateUrl: 'todo.html', directives: [NgFor, FORM_DIRECTIVES]})
|
||||
export class TodoApp {
|
||||
todoEdit: Todo = null;
|
||||
|
||||
Reference in New Issue
Block a user