Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

$scope.tabContainer is null #60

Open
omril1 opened this issue Apr 24, 2017 · 0 comments
Open

$scope.tabContainer is null #60

omril1 opened this issue Apr 24, 2017 · 0 comments

Comments

@omril1
Copy link

omril1 commented Apr 24, 2017

Sometimes the $scope.init function runs before the uib-tabset directive finished rendering into the DOM, so the querySelector returns null.
$el[0].querySelector('.spacer ul.nav-tabs');

I temporarily fixed it in my code by setting in a delay for the init function.
ex:

$timeout(function(){
     $scope.init();
 }, 100);

Is there a better solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant