How to retrieve the scope of a DOM element in AngularJS?

 Posted by Sheonarayan on 7/21/2015 | Category: AngularJS 1x Interview questions | Views: 3145 | Points: 40
Answer:

To retrieve the scope of a DOM element in AngularJS, we can use following code snippet.
var scope = angular.element("elmentSelector").scope()


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response