src/app/services/material.service.ts
Properties |
Methods |
constructor()
|
Defined in src/app/services/material.service.ts:7
|
render |
render()
|
Defined in src/app/services/material.service.ts:13
|
Returns :
void
|
handler |
handler:
|
Type : ComponentHandler
|
Defined in src/app/services/material.service.ts:7
|
import { Injectable } from '@angular/core';
import { ComponentHandler } from '../models';
declare var componentHandler: ComponentHandler;
@Injectable()
export class MaterialService {
handler: ComponentHandler;
constructor() {
this.handler = componentHandler;
}
// render on next tick
render() {
setTimeout(() => {
this.handler.upgradeDom();
}, 0);
}
}