Closed ShakurOo closed 8 years ago
I understand that when profil.inbox
is active you want inbox.html
to fill the ui-view='inbox'
, but when profil.inbox.discussion
is active, you want the discussion.html
to take the place of the inbox.html
and fill the ui-view='inbox'
.
I think you're on the right track, except that your view targeting looks wrong. I think 'inbox@profil.inbox'
should be 'inbox@profil'
.
When using view targeting in the profil.inbox
state, the views: { 'inbox': ...
is shorthand for 'inbox@profil'
--- the ui-view named 'inbox' that was created in the parent (profil
) state
In profil.inbox.discussion
state, views: { 'inbox@profil.inbox':
targets the ui-view named 'inbox' that was created in the profil.inbox
state. However, that ui-view
was created in the profil
state.
Check out the view targeting documentation and the source for the sample app which does a similar thing
I trying to use one ui-view directive for two differentes states with two differents templates.
I have 3 levels of states :
The html look's like similar :
The ui-view in tab must change according the current state, any idea ?
Thank's