I am attempting to switch from the built-in Angular route mechanism to ui.router. To do this, I have included angular.ui.router.js in my index.html and in my module:
var app = angular.module('multibookWeb', ['ui.router']);
After that, I defined routing in my app.config:
$urlRouterProvider.otherwise('/list');
$stateProvider
.state('list', {
url: '/list',
templateUrl: '/partials/list/list.html',
});
Although there are no errors showing up in the console, the routing is not functioning. I expected that when I entered www.someAddress.com/#, it would redirect me to www.someAddress.com/#/list or something similar, but that did not happen. When I checked the value of $state.current.name in the console (inside $watch), it returned an empty string. I tried debugging using this method, but the console remained empty...
My Angular version is 1.2.28
My Ui.router version is 0.2.13
You can view a plunker example here