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

 Posted by Sheonarayan on 7/21/2015 | Category: AngularJS Interview questions | Views: 1011 | 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