The problem is that when the ngTabs directive is executed, the contents of this div are not yet created. Wrapping a call to .tabs () in setTimeout will do the trick.
myApp.directive('ngTabs', function() {
return function(scope, elm) {
setTimeout(function() {
elm.tabs();
},0);
};
});
see jsFiddle . This may not be the best way / angular.
You can take a look at compile , especially if the actual tabs change at runtime.
source
share