‘THIS’ VS $SCOPE IN ANGULAR JS CONTROLLERS?

‘this’ vs $scope in Angular js controllers?

This if used in the controller so corresponds to the controller itself as it tells who actually is calling the function.$scope is the binder which connects the model to the view and controller to have binding.

 
 
 
 
 
 
 
 
 
 
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>