public UiRouterConfig(StateProvider _stateProvider, UrlRouterProvider _urlRouterProvider, LocationProvider _locationProvider) { _urlRouterProvider.Otherwise("state1"); _stateProvider.State(new StateConfig() { Name = "state1", Url = "/state1/{id}", //Controller = "State1Controller"; TemplateUrl = "state1.html" }); _stateProvider.State(new StateConfig() { Name = "state2", Url = "/state2", TemplateUrl = "state2.html" }); _stateProvider.State(new StateConfig() { Name = "state2.inner", Url = "/state2inner", TemplateUrl = "state2.inner.html" }); }