What is the difference between $scope and scope in AngularJS ?

devquora
devquora

Posted On: Feb 22, 2018

 

    1 Answer Written

  •  devquora
    Answered by devquora

    The main difference between $scope and scope in AngularJS are as follows -

    1. $scope is an AngularJS built-in object used as a bridge between the controller and the view. It defines model data and functions accessible in the view.
    2. scope (without the dollar sign) refers to a directive's isolated scope, separating it from the parent scope for better encapsulation and reusability.

Related Questions

Please Login or Register to leave a response.

Related Questions