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

@ -16,7 +16,7 @@ import {
import {SpyRouter, SpyLocation} from './spies';
import {bind, Component, View} from 'angular2/core';
import {provide, Component, View} from 'angular2/core';
import {By} from 'angular2/src/core/debug';
import {
@ -40,9 +40,10 @@ export function main() {
describe('router-link directive', function() {
var tcb: TestComponentBuilder;
beforeEachBindings(
() =>
[bind(Location).toValue(makeDummyLocation()), bind(Router).toValue(makeDummyRouter())]);
beforeEachBindings(() => [
provide(Location, {asValue: makeDummyLocation()}),
provide(Router, {asValue: makeDummyRouter()})
]);
beforeEach(inject([TestComponentBuilder], (tcBuilder) => { tcb = tcBuilder; }));