feat(di): rename Binding into Provider

Closes #4416

Closes #4654
This commit is contained in:
vsavkin
2015-10-10 22:11:13 -07:00
committed by Victor Savkin
parent 7c6130c2c5
commit 1eb0162cde
190 changed files with 2071 additions and 1816 deletions

View File

@ -3,12 +3,12 @@ import {bootstrap} from 'angular2/bootstrap';
import {App} from './app';
import {APP_VIEW_POOL_CAPACITY} from 'angular2/src/core/linker/view_pool';
import {bind} from 'angular2/core';
import {bind, provide} from 'angular2/core';
export function main() {
bootstrap(App, createBindings());
}
function createBindings(): any[] {
return [bind(APP_VIEW_POOL_CAPACITY).toValue(100000)];
return [provide(APP_VIEW_POOL_CAPACITY, {asValue: 100000})];
}