I'm making a website with Angular 4 and I use bootstrap and material design lite (mdl). I have some problems with mdl. For example, if I charge a new angular(s component with a route, some components of mdl will not work.
I already researched in stackoverflow and I find I have to use this functions to reload mdl's components : window.componentHandler.upgradeAllRegistered(); And it's working when I used that in the console of the browser !
But I'm new in Angular (I started last week), and I don't know how can I charge this function when I load a new angular's component. Can you help me ?
Thank you