feat(di): rename Binding into Provider

Closes #4416

Closes #4654
This commit is contained in:
vsavkin
2015-10-11 05:13:31 +00:00
committed by Victor Savkin
parent 7c6130c2c5
commit 1eb0162cde
190 changed files with 2071 additions and 1816 deletions
@@ -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;