4

Trying to make nested views work, but can't understand where i'm doing wrong. I have parent view with navigation and content, and when user click navigation links, it should load correct view. For some reason it still shows default content.

There are separate login and error states with views, but i removed them to make example simpler.

Here is plunker: http://plnkr.co/edit/bvcNzDwSanPkVm1zASVe?p=preview

So when user click on link, he should see template of selected state loaded to unnamed ui-view.

1
  • 1
    I understood how state works :) with your before after plunkers. Thank you for your question ;) Commented Jul 31, 2014 at 17:41

1 Answer 1

2

Finally got it solved. I have to put additional ui-view to default view:

'': {
      template: '<div ui-view></div>'
    },

Here is working plunker: http://plnkr.co/edit/zy4mYR?p=preview

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.