I have a small problem in integrating a meterial design (http://www.getmdl.io/) in ng2 Can you please help me I will put it in points what I have done
just import ElementRef
and OnInit
from the angular2/core
and inject it to a constructor as so:
constructor(@Inject(ElementRef) elementRef: ElementRef) {
this.elementRef = elementRef;
}
then use an ngOnInit
method and use the componentHandler.upgradeElement
on any dynamically added tag you used.