How to destroy view after navigating?


#1

Hi,

I am trying to navigate as following:

A => B => A=>B…etc

But I like the B View to be “re-init” every time I navigate to it. How can I do ?

Thanks,

Stéphane.


#2

The same thing happens to me, someone explains how to do it, please. thank you very much ???


#3

just check this & try to comment there


#4

So you want to re-initialize all of your data as soon as the page is loaded?
If that’s the case, I’d recommend using ngOnViewDidLoad()