AngularJS HotTowel에서 vm "ControllerAs" 구문을 사용하는 경우 장치 테스트 파일에서 $scope에 액세스합니다. 예를 들어, http://www.johnpapa.net/angularjss-controller-as-and-the-vm-variable/ 를 참조해 주세요. 제목에서 알 수 있듯이 이 튜토리얼 [http://tech.pro/tutorial/1473/getting-started-with-angularjs-unit-testing]에서 유닛 테스트를 셋업하고 있습니다.단, VM 변수에 액세스 할 수 없는 것 이외에는 문제가 없습니다. dashboard.display var controllerId = 'dashboard'; angular.module('app') .cont..