Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui-view remains empty when used within pageslide element #49

Open
angel1st opened this issue Jun 12, 2015 · 2 comments
Open

ui-view remains empty when used within pageslide element #49

angel1st opened this issue Jun 12, 2015 · 2 comments

Comments

@angel1st
Copy link

Hi there,
When I tried to switch to pageslide directive, I lost ui-view content from https://github.com/angular-ui/ui-router
Here is what I did:
My origin code snippet:

<div class="row">
    <div class="col-lg-3">
        <div ui-view="contacts" class="row"></div>
    </div>
    <div class="col-lg-6">
        <div ui-view="calls" class="row"></div>
    </div>

    <div class="col-lg-3 messaging">
        <div ui-view="messaging" class="row"></div>
    </div>
</div>

here all works just fine - after page rendering, all three ui-views have been injected with expected data.
So I decided to put the right ui-view - messaging into pageslide directive. I just amended the code:

<div class="row">
    <div class="col-lg-3">
        <div ui-view="contacts" class="row"></div>
    </div>
    <div class="col-lg-6">
        <div ui-view="calls" class="row"></div>
    </div>

    <pageslide ps-open="chatOpened">
        <div ui-view="messaging"></div>
    </pageslide>
</div>

and expected to see the messaging panel on the right. However when switch on the panel (chatOpened is true), I have completely empty panel. Inspecting ui-view within pageslide showed that the content has not been injected into the view - that explains why I see nothing, but it is not clear to me why the content has not been injected...
How to make it work?

Best Regards,
Angel

@KarelCemus
Copy link

+1 for this

@angel1st Have you figured out any workaround?

@xmarwin
Copy link

xmarwin commented Aug 1, 2016

Hello.
I had the same issue and luckily found a workaround, that works for me.
Try this:

<div class="row" id="myId">
    <div class="col-lg-3">
        <div ui-view="contacts" class="row"></div>
    </div>
    <div class="col-lg-6">
        <div ui-view="calls" class="row"></div>
    </div>

    <pageslide ps-open="chatOpened" ps-container="myId">
        <div ui-view="messaging"></div>
    </pageslide>
</div>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants