Using, Angular UI-Router, I have the following state:
$stateProvider
.state('blog.article', {
url: '/:slug',
template: '<article></article>',
views: {
}
});
I'm parsing the article slug in the url, which becomes available in $stateParams
. However, I would like to target a parent state's named ui-view
using this slug, is it possible to set the name of custom view to the slug in my case? So views object looks something like this:
views: {
'stateParams.slug': {/* etc */}
}