Implementing example and faced with: Error: [$injector:unpr] - please help with error? NG 1.3.x
Implementing example and faced with: Error: [$injector:unpr] - please help with error? NG 1.3.x
My code in my controller is:
angular
.module('app.cms')
.controller('CmsCtrl', CmsCtrl);
CmsCtrl.$inject = ['$scope', '$location', '$rootScope', '$route', '$resource', '$document', 'UserDataService', 'localStorageService', 'ezfb', 'datatables'];
function CmsCtrl($scope, $location, $rootScope, $route, $resource, $document, UserDataService, localStorageService, ezfb, DTOptionsBuilder, DTColumnBuilder) {
The error is:
Error: [$injector:unpr] http://errors.angularjs.org/1.3.16/$injector/unpr?p0=datatablesProvider%20%3C-NaNatatables%20%3C-%20CmsCtrl
Things I have tried are:
-Verified repeatedly that js file is properly included.
-Since this is a module on a bigger app, I did try moving the 'datatables' into the main app module for injection. This works to remove the unpr error, but that is then replaced with an error for newOption being attached to an undefined object.
Answers
I'm afraid that Angular DataTables project is not supported here. You'd need to ask the author of the Angular wrapper for DataTables.
Allan
Yes, I caught that after the fact. :)