How can i get this Error: $injector:modulerr
Module Error
by calling
angular.module('App', []).config(function () { }); ?
The whole project worked correctly without any calls to .config(), but i recently tried to add ng-route and got into this error even after removing any dependencies the bare config() throws the exception.
.config([with_dependency_inj_module],....)instead of this lineconfig([], function () { });?? May be this will give clear idea what exactly you use there - Dhananjay Cangular.module('App', [])anywhere before this config fileangular.module('App', []).config? - Dhananjay Cangular.module('App', ['ngAnimate', 'angular.filter', 'ui.bootstrap', 'nvd3', 'ngRoute']) .config(['$rootProvider', function ($routeProvider) { $routeProvider. when('/1', { //.. }). when('/2', { //... }). otherwise({ redirectTo: '/' }); }]);- Olloi