UpgradeAdapterRef

Stable Class Class Overview class UpgradeAdapterRef { ng1RootScope : IRootScopeService ng1Injector : IInjectorService ng2ModuleRef : NgModuleRef<any> ng2Injector : Injector ready(fn: (upgradeAdapterRef?: UpgradeAdapterRef) => void) dispose() } Class Description Use UpgradeAdapterRef to control a hybrid AngularJS v1 / Angular v2 application. Class Details ng1RootScope : IRootScopeService ng1Injector : IInjectorService ng2ModuleRef : NgModuleRef<any> ng2Inject

UiArguments

Experimental Class Class Overview class UiArguments { constructor(method: string, args?: FnArg[]) method : string args : FnArg[] } Class Description Constructor constructor(method: string, args?: FnArg[]) Class Details method : string args : FnArg[] exported from @angular/platform-webworker/index, defined in @angular/platform-webworker/src/web_workers/shared/client_message_broker.ts

upgrade

Module Entry point for all public APIs of the upgrade package. UpgradeAdapter UpgradeAdapterRef defined in @angular/upgrade/index.ts

TypeScript Configuration

TypeScript configuration for Angular 2 developers TypeScript is a primary language for Angular application development. It is a dialect of JavaScript with design-time support for type-safety and tooling. Browsers can't execute TypeScript directly. Typescript must be "transpiled" into JavaScript using the tsc compiler, which requires some configuration. This page covers some aspects of TypeScript configuration and the TypeScript environment that are important to Angular developers, including det

TRANSLATIONS

Experimental Const Variable Export export TRANSLATIONS exported from @angular/core/index defined in @angular/core/src/i18n/tokens.ts

trigger()

Experimental Function Class Export export trigger(name: string, animation: AnimationMetadata[]) : AnimationEntryMetadata trigger is an animation-specific function that is designed to be used inside of Angular2's animation DSL language. If this information is new, please navigate to the component animations metadata page to gain a better understanding of how animations in Angular2 are used. trigger Creates an animation trigger which will a list of state and transition entries that will be eva

TypeProvider

Stable Interface What it does Configures the Injector to return an instance of Type when `Type' is used as token. How to use @Injectable() class MyService {} const provider: TypeProvider = MyService; Interface Overview interface TypeProvider { } Interface Description Create an instance by invoking the new operator and supplying additional arguments. This form is a short form of TypeProvider; For more details, see the Dependency Injection Guide. Example @Injectable() class Greeting {

transition()

Experimental Function Class Export export transition(stateChangeExpr: string, steps: AnimationMetadata | AnimationMetadata[]) : AnimationStateTransitionMetadata transition is an animation-specific function that is designed to be used inside of Angular2's animation DSL language. If this information is new, please navigate to the component animations metadata page to gain a better understanding of how animations in Angular2 are used. transition declares the sequence of animation steps that wil

TRANSLATIONS_FORMAT

Experimental Const Variable Export export TRANSLATIONS_FORMAT exported from @angular/core/index defined in @angular/core/src/i18n/tokens.ts

tick()

Experimental Function Class Export export tick(millis?: number) : void Simulates the asynchronous passage of time for the timers in the fakeAsync zone. The microtasks queue is drained at the very start of this function and after any timer callback has been executed. Example describe('this test', () => { it('looks async but is synchronous', <any>fakeAsync((): void => { var flag = false; setTimeout(() => { flag = true; }, 100); expect(flag).toBe(false);