I have two pages A and B and navigation takes place from page A to page B.
On page B I inserted a button to go back:
import { Location } from '@angular/common';
...
this.location.back();
Navigation works correctly, but I don't want the ngOnInit method in page A to be invoked again when I go back.
This is the method I use to navigate between the two pages:
this.router.navigate(['/pages/page-b', item_id]);
UPDATE:
I would not want the xxx method to be called because it makes database calls which in this case I would like to avoid
RouteReuseStrategy