오류: $digest가 이미 진행 중입니다.
오류: $digest가 이미 진행 중입니다. 전화를 걸려고 하면 이 에러가 발생합니다. function MyCtrl1($scope, $location, $rootScope) { $scope.$on('$locationChangeStart', function (event, next, current) { event.preventDefault(); var answer = confirm("Are you sure you want to leave this page?"); if (answer) { $location.url($location.url(next).hash()); $rootScope.$apply(); } }); } MyCtrl1.$inject = ['$scope', '$location', '$rootScope..