I am trying to limit my use of $scope
in my controllers as much as possible and replace it with the Controller as
syntax.
My current proble
To answer the question at hand here, you can use $scope()
methods in a controller when using the controller-as syntax, as long as you pass $scope
as a parameter to the function. However, one of the main benefits of using the controller-as syntax is not using $scope
, which creates a quandary.
As was discussed in the comments, a new question will be formulated by the poster to review the specific code requiring $scope
in the first place, with some recommendations for re-structuring if possible.