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 -

dataset - MPAndroidchart returning no chart Data available -

post - imageshack API cURL -