S
S
shevchenko_ch2015-08-14 12:42:42
Angular
shevchenko_ch, 2015-08-14 12:42:42

How to get element from current scope by className (AngularJS)?

angular.element(".dropdown") returns all DOM elements with .dropdown class, how can get element with .dropdown class only and current $scope?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Osher, 2015-08-14
@shevchenko_ch

Such things should be wrapped in directives.
And in the link function write elem.find('.dropdown').

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question