J'ai inclus cette ligne à utiliser ngStorageImpossible d'injecter « ngStorage » après y compris le fichier ngStorage
<script src="js/angularjs/ngStorage.min.js"></script>
et injecté à mon contrôleur nommé controlleur comme je le fais toujours
.controller('bookController', ['$scope', 'bookService', '$location', '$sessionStorage', function($scope, bookService, $location, $sessionStorage)
Pourquoi une erreur d'injecteur persiste-t-elle?
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
Vous aide est très apprécié!
Avez-vous remarqué que le "s" est coupé du message d'erreur quand il dit "essionStorageProvider"? –
L'avez-vous injecté dans votre module? –
@CameronRodriguez Merci beaucoup! Je n'ai pas réalisé cela. – Danzeeeee