File

src/app/services/material.service.ts

Index

Properties
Methods

Constructor

constructor()

Methods

render
render()
Returns : void

Properties

handler
handler: ComponentHandler
Type : ComponentHandler
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);
  }
}

results matching ""

    No results matching ""