angularjs 루트스코프 변화 감시 사용자가 로그인할 때 다른 서버에 존재감을 설정할 수 있도록 루트 범위에 바인드하려고 합니다.제 모듈입니다. angular.module('presence', [ ] ) .run(function ($rootScope) { $rootScope.$watch($rootScope.currentUser, function () { console.log('change currentUser') console.log($rootScope.currentUser) presence.setGlobal({ u: $rootScope.currentUser, s: 'on' }) }) }) 컨트롤러는 없습니다.이는 사용자의 글로벌 존재에 관한 것일 뿐 DOM과는 무관하기 때문입니다. 이것은 동작하지 ..