zagnieżdżony kontroler tras ui-routera nie jest wywoływany
Próbuję wywołać kontroler, który powinien być połączony zhome.category
trasa, ale nie jest wywoływana. Co w tym jest nie tak?
$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);
}
})