PlatformReflink
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 a platform is created via a platform factory (e.g. platformBrowser
), or explicitly by calling the createPlatform
function.
属性
属性名 | 类型 | 说明 |
---|---|---|
injector | 只读 Retrieve the platform | |
destroyed | 只读 |
方法
Creates an instance of an | ||||
参数
返回值
| ||||
Simple Example |
Creates an instance of an | ||||
参数
返回值
| ||||
Simple Example |
Register a listener to be called when the platform is disposed. | ||
参数
返回值
|
Destroy the Angular platform and all Angular applications on the page. |
参数没有参数。 |