universal/src/directives/platform.directive.ts
Provides the base functionality for platform directives to render elements only on certain platforms.
Methods |
|
constructor(template: TemplateRef
|
||||||||||||
Parameters:
|
||||||||||||
ngOnInit |
ngOnInit()
|
Checks whether the element should be rendered on the current platform and renders it.
Returns:
void
|
Protected Abstract shouldRender |
shouldRender()
|
Checks whether the element should be rendered on the current platform.
Returns:
boolean
|