The answer is simple, inject $scope where and when you want access to those methods. angular.module('app').controller("SubController", function ...
確定! 回上一頁