I hope this is not too late, but today I ran into the same problem. You can achieve this:
1) Defining hrefs tabs in the controller:
$scope.tabs = [ { title:"tab1", href:"#/route1/page1" }, { title:"tab2", href:"#/route1/page2" } ];
2) Declaration of the hash change function in the controller:
$scope.changeHash = function(data) { window.location.hash = data; };
3) Use the following markup:
<tabset> <tab ng-repeat="tab in tabs" heading="{{tab.title}}" active="tab.active" select="changeHash(tab.href)" /> </tabset>
I am not sure if this is the best approach and I would like to hear from others.
superhs
source share