diff --git a/public/docs/_examples/cb-dependency-injection/ts/app/main.ts b/public/docs/_examples/cb-dependency-injection/ts/app/main.ts index b1e35e2a67..4873400039 100644 --- a/public/docs/_examples/cb-dependency-injection/ts/app/main.ts +++ b/public/docs/_examples/cb-dependency-injection/ts/app/main.ts @@ -3,9 +3,10 @@ import { bootstrap } from 'angular2/platform/browser'; import { provide } from 'angular2/core'; import { XHRBackend } from 'angular2/http'; +import { ROUTER_PROVIDERS } from 'angular2/router'; + import { LocationStrategy, - HashLocationStrategy, - ROUTER_PROVIDERS } from 'angular2/router'; + HashLocationStrategy } from 'angular2/platform/common'; import { HeroData } from './hero-data'; import { InMemoryBackendService, diff --git a/public/docs/_examples/cb-ts-to-js/ts/app/main.ts b/public/docs/_examples/cb-ts-to-js/ts/app/main.ts index 02535f55f8..03e7d81a5a 100644 --- a/public/docs/_examples/cb-ts-to-js/ts/app/main.ts +++ b/public/docs/_examples/cb-ts-to-js/ts/app/main.ts @@ -3,10 +3,12 @@ import {provide} from 'angular2/core'; import {bootstrap} from 'angular2/platform/browser'; +import { +} from 'angular2/router'; import { LocationStrategy, HashLocationStrategy -} from 'angular2/router'; +} from 'angular2/platform/common'; // #enddocregion ng2import // #docregion appimport diff --git a/public/docs/_examples/dependency-injection/ts/app/car/car-injector.ts b/public/docs/_examples/dependency-injection/ts/app/car/car-injector.ts index a94202585c..f980f2fd83 100644 --- a/public/docs/_examples/dependency-injection/ts/app/car/car-injector.ts +++ b/public/docs/_examples/dependency-injection/ts/app/car/car-injector.ts @@ -1,25 +1,25 @@ // #docplaster //#docregion -import { Injector } from 'angular2/core'; +import { ReflectiveInjector } from 'angular2/core'; import {Car, Engine, Tires} from './car'; import {Logger} from '../logger.service'; //#docregion injector export function useInjector() { - var injector:Injector; + var injector:ReflectiveInjector; //#enddocregion injector /* //#docregion injector-no-new - // Cannot 'new' an Injector like this! - var injector = new Injector([Car, Engine, Tires, Logger]); + // Cannot 'new' an ReflectiveInjector like this! + var injector = new ReflectiveInjector([Car, Engine, Tires, Logger]); //#enddocregion injector-no-new */ //#docregion injector //#docregion injector-create-and-call - injector = Injector.resolveAndCreate([Car, Engine, Tires, Logger]); + injector = ReflectiveInjector.resolveAndCreate([Car, Engine, Tires, Logger]); //#docregion injector-call var car = injector.get(Car); //#enddocregion injector-call diff --git a/public/docs/_examples/dependency-injection/ts/app/injector.component.ts b/public/docs/_examples/dependency-injection/ts/app/injector.component.ts index 9914e7d029..7640969183 100644 --- a/public/docs/_examples/dependency-injection/ts/app/injector.component.ts +++ b/public/docs/_examples/dependency-injection/ts/app/injector.component.ts @@ -30,7 +30,7 @@ export class InjectorComponent { hero = this.heroService.getHeroes()[0]; get rodent() { - let rous = this._injector.getOptional(ROUS); + let rous = this._injector.get(ROUS, null); if (rous) { throw new Error('Aaaargh!') } diff --git a/public/docs/_examples/homepage-hello-world/ts/index.1.html b/public/docs/_examples/homepage-hello-world/ts/index.1.html index c311e81341..550dc65833 100644 --- a/public/docs/_examples/homepage-hello-world/ts/index.1.html +++ b/public/docs/_examples/homepage-hello-world/ts/index.1.html @@ -14,9 +14,9 @@ - - - + + + - - - + + + - - - + + +