用第二个方法就成这样了
angular.min.js:125 ReferenceError: $scope is not defined(…) "Possibly unhandled rejection: {}"(anonymous function) @ angular.min.js:125
angular.min.js:125 ReferenceError: $scope is not defined(…) "Possibly unhandled rejection: {}"(anonymous function) @ angular.min.js:125
http://localhost:3000/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)
angular.min.js:125 ReferenceError: $scope is not defined(…) "Possibly unhandled rejection: {}"(anonymous function) @ angular.min.js:125
angular.min.js:125 TypeError: $http.get(...).success is not a function(…) "<div ui-view="" class="ng-scope" data-ng-animate="1">"
现在倒是又出现这个错了
Uncaught TypeError: $http.get(...).success is not a function index.js:375
livereload.js?snipver=1:351 LiveReload protocol error (invalid command 'reload', only valid commands are: hello)) after receiving data: "{"command":"reload","path":"C:\\web\\dist\\view\\search.html","liveCSS":true,"liveJs":true,"liveImg":true}"..
http://localhost:3000/favicon.ico Failed to load resource: the server responded with a status of 404 (Not Found)