google maps - Angular 4 Run Code After *NgIf Complete -


i'm developing application need run code after *ngif has finished removing component dom. specifically, need resize google map, once component in question removed dom. possible? thanks!

after flip switch false use settimeout , run resize code there. more information, check out answer.

this.show = false; settimeout(() => {      this.resizesomething(); }) 

Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -