Hi, I tried to use ui-router. But seem to be stuck in a stupid error -
I had done this - index.html: <!DOCTYPE html> <html ng-app="ox-admin" xmlns="http://www.w3.org/1999/xhtml"> <head> <script src="Scripts/jquery-1.9.1.js"></script> <script src="Scripts/angular.js"></script> <script src="Scripts/angular-resource.js"></script> <script src="Scripts/angular-route.js"></script> <script src="Scripts/angular-ui-router.min.js"></script> <script src="js/app.js"></script> <script src="js/controllers.js"></script> <link rel="stylesheet" type="text/css" href="Content/bootstrap.css" /> <title>OmniExchange - Administrator</title> </head> <body> <div class="container-fluid"> <div class="row"> <div class="col-md-2" ng-controller="ox-adminCtrl"> <!--Body content--> <ul class="phones"> <li ng-repeat="menuitem in menuitems"> <a ui-sref="{{menuitem.view}}">{{menuitem.name}}</a> </li> </ul> </div> <div class="col-md-10" ui-view> </div> </div> </div> </body> </html> app.js /* App Module */ var oxadminApp = angular.module('ox-admin', [ 'ui.router', 'oxadminControllers' ]); oxadminApp.config(function($stateProvider, $urlRouterProvider) { $urlRouterProvider.otherwise('/htmls'); $stateProvider .state('/regTemplate', { url: '/regTemplate', templateUrl: '/htmls/regTemplate.html' }) .state('/regDevice', { url: '/regDevice', templateUrl: '/htmls/regDevice.html' }) .state('/regService', { url: '/regService', templateUrl: '/htmls/regService.html' }) .state('/confAuth', { url: '/confAuth', templateUrl: '/htmls/confAuth.html' }) .state('/confInt', { url: '/confInt', templateUrl: '/htmls/confInt.html' }); }); When I click on the regTemplate link, I get this error: Error: Could not resolve 'regTemplate' from state '' I have tried a lot of things, but not able to resolve it. Regards Nitin -- 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.
