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
injector Injector
Retrieve the platform Injector, which is the parent injector for every Angular application on the page and provides singleton providers.
read-only
hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

dispose() → void
Destroy the Angular platform and all Angular applications on the page.
registerDisposeListener(void dispose()) → void
Register a listener to be called when the platform is disposed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(other) → bool
The equality operator. [...]
inherited