What is the difference between $scope and scope

$scope is used while defining a controller

where scope is used while creating a link function for a custom directive. The common part is that they both refers to scope object in AngularJS, but the difference is that $scope uses dependency injection where scope doesn't.

results matching ""

    No results matching ""