‘Controller as’ or ‘$scope’ in AngularJS
I am use to $scope in AngularJS controller.
The project I am contracting on use ‘Controller as’ and I don’t see why.
What’s the proper way out there apart from moving to latest Angular 8 🙂
I have seen both... personally prefer Controller as
Try to avoid directly using $scope variables in the view.