O controlador de rota aninhada do ui-router não está sendo chamado
Estou tentando chamar um controlador que deve estar vinculado aohome.category
rota, mas não está sendo chamado. O que há de errado nisso?
$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);
}
})