The Angular platform is the entry point for Angular on a web page. Each page has exactly one platform, and services (such as reflection) which are common to every Angular application running on the page are bound in its scope.

A page's platform is initialized implicitly when bootstrap() is called, or explicitly by calling createPlatform().

Constructors

PlatformRef()

Properties

disposed → bool

read-only
hashCode → int

Get a hash code for this object.

read-only, inherited
injector Injector

Retrieve the platform Injector, which is the parent injector for every Angular application on the page and provides singleton providers.

read-only
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

dispose() → void

Destroy the Angular platform and all Angular applications on the page.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
registerDisposeListener(void dispose()) → void

Register a listener to be called when the platform is disposed.

toString() → String

Returns a string representation of this object.

inherited