How to destroy view after navigating?


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 ?



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

just check this & try to comment there

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()