Solved
Determining Active Tab Number as String
Regarding this post: Determining Active Tabs
Using the proposed solution, when a button is pressed, I would like a label to display the current active tab number.
My attempt is below but this currently isn't working. Any advice would be appreciated.
$scope.buttonPress = function(){
var tabID = $scope.testClickTab();
$scope.setWidgetProp( "label-9", "text", tabID);
}
$scope.testClickTab=function(key) {
angular.forEach(
$element.find('twx-tab'), function(value, key) {
if(value['style']['display']=='block') console.error(key);
} )
};

