Don't expect $scope to work in a service as it does in a controller in the Angular 1 paradigm.
This is going to be one of the pain points in abstracting code that a second controller needs out of a first controller into a common service. Hopefully you may isolate what you need to hand over and hand just that over and not the whole of $scope.
No comments:
Post a Comment