andrescabana86 andrescabana86 - 5 months ago 25
AngularJS Question

Error: $injector:modulerr Module Error with ui-router

i cant figure out what is the problem

div#wrapper(ng-app="adminApp")
....


js/

var adminApp = angular.module('adminApp', ['ui-router']);


if i use

var adminApp = angular.module('adminApp', []);


the error disappear

why is that?

UPDATE:

adding image from console

enter image description here

Answer

the module name is ui-router but you need to inject ui.router and not ui-router

var adminApp = angular.module('adminApp', ['ui.router']);

check out PLUNKER LINK