Attempting to manage my views using state (ui.router
) has hit a roadblock. The addition of extra dependencies to the module is triggering the following error:
Uncaught Error: [$injector:modulerr]
This error is causing my states to break.
var MyApp = angular.module('MyApp', ['ui.router', 'ui.bootstrap']);
In an effort to incorporate angular grid support, I modified the code to:
var MyApp = angular.module('MyApp', ['ui.router', 'ui.bootstrap', 'angularGrid']);
However, this third dependency is triggering another error in Angular. Trying another approach, I updated the code as follows:
var MyApp = angular.module('MyApp', ['ui.router', 'ui.bootstrap');
MyApp = angular.module('MyApp', ['angularGrid');
Despite these changes, I am still encountering the same persistent error message.
Is there something crucial that I might be overlooking?
Error :
Failed to instantiate module angularGrid due to:
Error: [$injector:nomod] http://errors.angularjs.org/1.4.3/$injector/nomod?p0=angu...
at Error (native)
at http://localhost:50196/Scripts/Angular/angular.min.js:6:416
at http://localhost:50196/Scripts/Angular/angular.min.js:24:66
at a (http://localhost:50196/Scripts/Angular/angular.min.js:23:109)
at http://localhost:50196/Scripts/Angular/angular.min.js:23:352
at http://localhost:50196/Scripts/Angular/angular.min.js:37:451
at m (http://localhost:50196/Scripts/Angular/angular.min.js:7:322)
at g (http://localhost:50196/Scripts/Angular/angular.min.js:37:229)
at http://localhost:50196/Scripts/Angular/angular.min.js:37:398
at m (http://localhost:50196/Scripts/Angular/angular.min.js:7:322