angularjs - How to get the active tab In Angular Material -


i want find active tab in material , save in cookie:

var activetab = $cookiestore.get("active"); $cookiestore.put('active',$scope.selectedindex); console.log(active); 

how can find active tab in angular material

here codepen example

using md-on-select="ontabchanges(tabnumber)" can "watch" tab changes.

example in codepen: angular material selected tab


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -