The main problem is that you did *NOT* inject you ui.router module to your modules.
2015-05-19 12:03 GMT-05:00 darshan khot <[email protected]>: > I am constantly getting an error while using angular-route.js > $routeProvider and also I even tried using angular-ui-router.js > $stateProvider,$urlRouterProvider. > > basically this is what i am doing:- > > ========================================= > app.config(function($stateProvider,$urlRouterProvider) { > $urlRouterProvider.otherwise("/"); > $stateProvider > .state('Home', { > url: "/", > templateUrl: "views/home.html", > controller: 'MyController' > }) > .state('List',{ > url : "/list", > templateUrl : "views/list.html", > controller: 'MyController' > }) > }) > ============================================ > > Error:- > > Uncaught Error: [$injector:modulerr] > http://errors.angularjs.org/1.3.15/$injector/modulerr?p0=MyApp&p1=Error%3A%…127.0.0.1%3A52621%2Fbower_components%2Fangular%2Fangular.min.js%3A38%3A135) > in angular.js:38 > > I am not able to use any routing js (angular-route and angular-ui-router) > in app.config. Please help me to resolve why this error is coming and what > needs to be corrected. > > Thank you, > Darshan > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/d/optout. > -- Saludos Cordiales *Francis Gonzales* -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
