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

Successive modal component not being injected #169

Open
sambbaron opened this issue Feb 22, 2016 · 1 comment
Open

Successive modal component not being injected #169

sambbaron opened this issue Feb 22, 2016 · 1 comment

Comments

@sambbaron
Copy link

This issue is also posted on Stack Overflow

I am working with the AngularDart UI modal component, and I am trying to implement successive modals. Ask the user a question, get an answer, ask the user another question, etc. The problem I'm having is that for the second modal, the component is not being compiled and injected.

I have confirmed that the template selector is being injected on modal open:

<modal-window preventanimation="false" backdrop="true" keyboard="true" windowclass="modal-editor" size="sm"
          class="ng-binding" index="0">
<open-question-modal
        question="There is only one version of this app.  You will need to create a copy for editing.  Please select the copy type."
        answer-list-string="['Complete Copy','Data Sources Only']" cancel-enabled="false"
        class="ng-binding"></open-question-modal>

But then the compiled component doesn't get injected:

<modal-window preventanimation="false" backdrop="true" keyboard="true" windowclass="modal-editor" size="sm"
          class="ng-binding" index="0">
<div tabindex="-1" class ng-style ng-click="close($event)" modal-window>
    <div class modal-window>
        <div class="modal-content" modal-window>
            <content modal-window class="ng-binding"></content>
        </div>
    </div>
</div>

I confirmed that the component is being called because I can debug the 'attach' method. I made sure the previous modal was closed (Modal.openedWindows was empty prior to the second modal being called). My uninformed gut thinks it has something to do with scope, but I don't know enough about scope to say what. I am injecting ScopeAware as I normally would and passing it into modal.open.

Has anyone else experienced something like this? I can post or describe more of my code based on specific questions. Thank you.

@akserg
Copy link
Owner

akserg commented Feb 22, 2016

I'm busy fixing other issues by request of @stevenpietzsch for 0.6 release. I will have a look into you problem a bit later.

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

2 participants