title: How to get the active tab In Angular Material
body: <p>I want to find <a href="https://material.angularjs.org/latest/demo/tabs">active tab in material</a> and save in cookie:</p>
  
  <pre><code>var activeTab = $cookieStore.get("active");
  $cookieStore.put('active',$scope.selectedIndex);
  console.log(active);
  </code></pre>
  
  <p>How can I find active tab in angular material</p>
  
  <p>Here is <a href="http://codepen.io/anon/pen/XXxpYG">codepen</a> example</p>