In my angularjs application on ng-click on a button, I have
$scope.getItems = function() {
var matchedElements = angular.element(document).find('.main_tabSet');
console.log(matchedElements.length);
}
which is working fine.
Now there are few bootstrap classes which are injected below main_tabSet
, which I am trying to access in ng-click as
var matchedElements = angular.element(document).find('.main_tabSet .nav .nav-tabs');
but this is not returning the elements. What is the right way of accessing elements using nested classes?