controlador de ruta anidada ui-router no está siendo llamado
Estoy tratando de llamar a un controlador que debería estar vinculado con elhome.category
Ruta pero no se llama. ¿Qué hay de malo en ello?
$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);
}
})