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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -