setTestabilityGetter()

Experimental Function Class Export export setTestabilityGetter(getter: GetTestability) : void Set the GetTestability implementation used by the Angular testing framework. exported from @angular/core/index defined in @angular/core/src/testability/testability.ts

ServiceMessageBroker

Experimental Class Class Overview class ServiceMessageBroker { registerMethod(methodName: string, signature: Type<any>[], method: Function, returnType?: Type<any>) : void } Class Description Helper class for UIComponents that allows components to register methods. If a registered method message is received from the broker on the worker, the UIMessageBroker deserializes its arguments and calls the registered method. If that method returns a promise, the UIMessageBroker returns

ServiceMessageBrokerFactory

Experimental Class Class Overview class ServiceMessageBrokerFactory { createMessageBroker(channel: string, runInZone?: boolean) : ServiceMessageBroker } Class Description Class Details createMessageBroker(channel: string, runInZone?: boolean) : ServiceMessageBroker Initializes the given channel and attaches a new ServiceMessageBroker to it. exported from @angular/platform-webworker/index, defined in @angular/platform-webworker/src/web_workers/shared/service_message_broker.ts

ServerTestingModule

Experimental Class Class Overview class ServerTestingModule { } Class Description NgModule for testing. Annotations @NgModule({exports: [BrowserDynamicTestingModule]}) exported from @angular/platform-server/testing/index, defined in @angular/platform-server/testing/server.ts

ServerModule

Experimental Class Class Overview class ServerModule { } Class Description The ng module for the server. Annotations @NgModule({imports: [BrowserModule]}) exported from @angular/platform-server/index, defined in @angular/platform-server/src/server.ts

sequence()

Experimental Function Class Export export sequence(steps: AnimationMetadata[]) : AnimationSequenceMetadata sequence 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. sequence Specifies a list of animation steps that are run one by one. (sequence is used by default when an array is

Set the Document Title

Setting the document or window title using the Title service. Our app should be able to make the browser title bar say whatever we want it to say. This cookbook explains how to do it. See the . To see the browser Title bar changes, pop out the preview window by clicking the blue 'X' button in the upper right corner. The problem with <title> The obvious approach is to bind a property of the component to the HTML <title> like this: <title>{{This_Does_Not_Work}}</title>

Security

Developing for content security in Angular applications This section describes Angular's built-in protections against common web application vulnerabilities and attacks such as cross-site scripting attacks. It does not cover application-level security, such as authentication (Who is this user?) or authorization (What can this user do?). For more information about the attacks and mitigations described below, see OWASP Guide Project. Contents: Reporting vulnerabilities. Best practices. Prevent

Sanitizer

Stable Class Class Overview class Sanitizer { sanitize(context: SecurityContext, value: string) : string } Class Description Sanitizer is used by the views to sanitize potentially dangerous values. Class Details sanitize(context: SecurityContext, value: string) : string exported from @angular/core/index, defined in @angular/core/src/security.ts

SelectControlValueAccessor

Stable Directive Class Overview class SelectControlValueAccessor { constructor(_renderer: Renderer, _elementRef: ElementRef) value : any onChange : (_: any) => {} onTouched : () => {} writeValue(value: any) : void registerOnChange(fn: (value: any) => any) : void registerOnTouched(fn: () => any) : void setDisabledState(isDisabled: boolean) : void } Selectors select:not([multiple])[formControlName] select:not([multiple])[formControl] select:not([multiple])[n