0

I have a div like this:

<div class="messengerPane">
</div>

It will be on every state / view of the app, I need to load different views into it with parameters on click:

ex:

<a>Message</a>

That ui-sref opens the messenger window for the entire view, I only want to load that state into the div, I can't do a nested state because it has to be accessible from any state.

Note that I already have another <div ui-view></div> elsewhere

Here is a plnkr showing what I am trying to do: http://plnkr.co/edit/qbg8E2

1 Answer 1

1

Simply put the view inside that div

<div class="messengerPane">
    <div ui-view></div>
</div>
Sign up to request clarification or add additional context in comments.

13 Comments

I have to load other views in addition to this one
do you want to load multiple views in same page?
@Jordash - the ui-view directive will just load in whatever template is associate with the state you call whether it be using ui-sref of $state.go() calls. Before this answer was posted how were you using ui-view in the first place?
Yeah multiple views on the same page, but from within any state.
i didn't get your point. why do you need that.. kindly explain about outer div, and if it is just this div then it makes no sense to waste a lot of your and our time...
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.