Angularstrap Modal not show content when click open with $modal service twice #158
Comments
Please provide a reproducible test-case from this working plunker: Feel free to reopen when its done. |
I see the issue reproduced in the aforementioned plunker already, but only for the service button. The first time you click the "With $modal Service" button, you see "Hello Modal" and "2 + 3 = 5". If you click "Close" then click "With $modal Service" again, you see "{{modal.content}}" and "2 + 3 = {{ 2 + 3 }}". |
If I pass a new scope to $modal() every time - using |
The problem is visible on the AngularStrap site: http://mgcrea.github.io/angular-strap/#/modal. To reproduce: Click the With $modal service button twice. Results:
|
There is an option called persist that is visible from the source, without it the scope is destroyed.
|
mgcrea...awesome job with Angular Strap!! I just ran into the same issue...and it still seems to exists...and still reproducible on the main site. Any idea on when it might get fixed? Thanks |
I just ran into this also from the code on the main site. It took more than a couple clicks of the "With $modal service" button before it stopped working, but it did eventually. I wish I could say exactly what I did, but I was just playing around with those two buttons and I'm not sure how many times I clicked what before it stopped working. It also stopped the other button from functioning. EDIT: Opening the plunker for modals from the main site also causes the issue. 2nd click of the button and it no longer works. |
I also have the same problem. My code example is below: EngagementApp.directive('profileModal', ['$compile', 'Request', '$modal', '$q',
}]); |
I have a similar problem when the modal is created using the service from a controller which is not on the root scope (e.g., a controller of a routing view): the modal content is not evaluated ( |
Solved: the anchor in the plunker which triggers the modal opening via service should not have |
you should remove |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I found a problem in the overview and example of Modal popup. When I click the first time the modal popup is show the content correctly "Hello Modal", but when I click the second times the content was show wrong "{{modal.content}}". Can any one help me to fix this problem. Thanks in advance!
The text was updated successfully, but these errors were encountered: