How to use getRootNavById?

Just gonna link my post which has the same subject getRootNav() deprecated, use getRootNavById(): what's the value of the root nav id?

and also the github issue https://github.com/ionic-team/ionic-site/issues/1197