Angular.js “Controller as …” + $scope.$on

前端 未结 3 955
滥情空心
滥情空心 2021-01-17 10:42

If i\'d like to use the \"Controller as ...\" syntax in Angular, how should I approach things like $scope.$on(...) that i need to put inside the controller?

I get a

3条回答
提交回复
热议问题