In ionic-angular 3.5.0, getRootNav() is set as deprecated
(getRootNav) is deprecated and will be removed in the next major release. Use getRootNavById instead.
getRootNavById id declared like following
getRootNavById(navId: string): NavigationContainer;
getRootNav() didn’t took any parameter, therefore to be honest, I don’t know the value of navId. How could I figure that out or how could I define my own value?
If I log the rootNav.id like following I found “n4” as a result, but look like a bit generic for a value, not sure if I should use that…
console.log(this.app.getRootNav()); => 'n4'
Thx in advance