What is the difference between ‘this’ vs $scope in AngularJS controllers?

devquora
devquora

Posted On: Feb 22, 2018

 

The $scope is an object with the available methods and properties. It is used to get all controls on the controller.JS files. It is available for both the controller and the view. "This" is the controller used when the controller’s constructor function is called.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions