I'm currently utilizing angular-ui-router's nested states feature to manage my views. My objective is to set up two routes:
/artists
- this will display the main page for all artists
/artists/:id
- this route will showcase the individual artist profiles
As a result, I prefer that the artist profile route doesn't overlap with the HTML content from the artists homepage route. Essentially, I want the views to be separate entities but still share the base route.
.state('artists', {
url: '/artists',
templateUrl: 'page/to/show/all/artists.html',
controller: 'AllArtistCtrl'
})
.state('artists.profile', {
url: '/:artistId',
templateUrl: 'page/to/show/artist/profile.html',
controller: 'ArtistProfileCtrl'
})
I explicitly do not wish for the artist profile to inherit content from <div ui-view></div>
within the artist parent route. I desire complete independence between the templates. How can I achieve this?