Der verschachtelte Routecontroller von ui-router wird nicht aufgerufen
Ich versuche einen Controller anzurufen, der mit dem verbunden werden sollhome.category
route aber es wird nicht gerufen. Was ist daran falsch?
$stateProvider
.state("home", {
// Use a url of "/" to set a states as the "index".
url: "/",
templateUrl: APP_CONFIG.baseUrl +
'partials/layouts/home.html',
controller: 'MainCtrl'
})
.state("home.category", {
// Use a url of "/" to set a states as the "index".
url: "c/:categoryId/:categorySlug",
controller: function($stateParams) {
alert($stateParams.categoryId);
}
})