title: Ionic get Active Page
body: <p>I am using Ionic 3 and want to get the name of the active page in order to identify which page I am on in an event subscription.</p>
  
  <p>When I am on a page, the following works:</p>
  
  <pre><code>this.nav.getActive().name
  </code></pre>
  
  <p>However, if my root is tabs and I want to identify the page loaded in a tab, the above code just returns the tab page name and not the active page.</p>
  
  <p><strong>Question</strong></p>
  
  <p>How do I get the active page name or identifier if it is loaded in a tab?</p>