파일을 포함한 후 'ngStorage'을 주입하고 난 항상는 ngStorage 내가 <strong>ngStorage</strong></p> <pre><code><script src="js/angularjs/ngStorage.min.js"></script> </code></pre> <p>을 사용하려면이 라인을 포함 시켰습니다
.controller('bookController', ['$scope', 'bookService', '$location', '$sessionStorage', function($scope, bookService, $location, $sessionStorage)
을하는 것처럼 BookController는
라는 이름의 내 컨트롤러에 주입 할 수 없습니다 왜 이런 인젝터 오류가 계속 발생합니까?
angular.min.js:118 Error: [$injector:unpr] http://errors.angularjs.org/1.5.8/$injector/unpr?p0=<div ng-view="" class="ng-scope">essionStorageProvider%20%3C-%20%24sessionStorage%20%3C-%20bookController
at http://localhost/cm0665/js/angularjs/angular.min.js:6:412
at http://localhost/cm0665/js/angularjs/angular.min.js:43:174
at Object.d [as get] (http://localhost/cm0665/js/angularjs/angular.min.js:40:432)
at http://localhost/cm0665/js/angularjs/angular.min.js:43:236
at d (http://localhost/cm0665/js/angularjs/angular.min.js:40:432)
at e (http://localhost/cm0665/js/angularjs/angular.min.js:41:158)
at Object.instantiate (http://localhost/cm0665/js/angularjs/angular.min.js:42:24)
at http://localhost/cm0665/js/angularjs/angular.min.js:90:32
at Object.link (http://localhost/cm0665/js/angularjs/angular-route.min.js:7:274)
at http://localhost/cm0665/js/angularjs/angular.min.js:16:71
많은 도움을드립니다.
"essionStorageProvider"라고 말하면 "s"가 오류 메시지에서 잘린 것을 확인 했습니까? –
모듈에 주입 했습니까? –
@CameronRodriguez 고마워요! 그걸 몰랐어. – Danzeeeee