From 0a606a1b4110e8592a12ee2c9d74bd70098e8f7b Mon Sep 17 00:00:00 2001 From: Filipe Silva Date: Thu, 21 Apr 2016 01:12:21 +0100 Subject: [PATCH] chore(ts): updating to beta.16 --- .../cb-dependency-injection/ts/app/main.ts | 5 ++-- .../docs/_examples/cb-ts-to-js/ts/app/main.ts | 4 +++- .../ts/app/car/car-injector.ts | 10 ++++---- .../ts/app/injector.component.ts | 2 +- .../homepage-hello-world/ts/index.1.html | 6 ++--- .../_examples/homepage-tabs/ts/index.1.html | 6 ++--- .../_examples/homepage-todo/ts/index.1.html | 6 ++--- public/docs/_examples/package.json | 13 +++++----- .../_examples/pipes/ts/app/app.component.html | 5 ---- .../_examples/pipes/ts/app/app.component.ts | 4 +--- .../pipes/ts/app/exponential-strength.pipe.ts | 4 ++-- .../_examples/pipes/ts/app/fetch-json.pipe.ts | 4 ++-- .../pipes/ts/app/random-pipe.component.ts | 24 ------------------- .../_examples/quickstart/js/package.1.json | 4 ++-- .../_examples/quickstart/ts/package.1.json | 6 ++--- public/docs/_examples/router/ts/app/main.2.ts | 2 +- .../_examples/testing/ts/app/mock-router.ts | 6 ++--- public/docs/js/latest/_data.json | 2 +- public/docs/ts/latest/_data.json | 2 +- .../ts/latest/guide/dependency-injection.jade | 3 ++- public/docs/ts/latest/guide/pipes.jade | 21 ++++------------ tools/plunker-builder/indexHtmlTranslator.js | 20 ++++++++-------- 22 files changed, 59 insertions(+), 100 deletions(-) delete mode 100644 public/docs/_examples/pipes/ts/app/random-pipe.component.ts 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 @@ - - - + + + - - - + + + - - - + + +