They intend (my guess) to use the Angular controllerAs syntax. When you do this, you end up using $scope lot less (if at all).
The reason is that your views are no longer directly linked to the scope, they are bound to the properties of the controller. Therefore, in the MyController example above, views can access the awesomeThings array using the name for the controller that you supply:
<body ng-controller="MyController as myCtl"> <p ng-repeat="thing in myCtl.awesomeThings">{{thing}}</p> </body>
One case where you still need to use $scope is when you want to use $scope.$watch() . In this case, enter $scope in your controller, just as you would with $http above:
class MyController { constructor($scope) {
PS: This syntax is most likely ES6, but I could be wrong ... I use Typescript, which looks very similar.
source share