-
Notifications
You must be signed in to change notification settings - Fork 266
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
form access in the modal controller #93
Comments
Err, that codepen does not seem to work at all. A form is exposed on the containing controller's scope. So, have you tried to pass that scope in when you open the modal? |
Sorry for not making myself clear. The codepen should illustrate the error. Which you can observe in the console. So you are saying that the form property is on |
It would help if you closed your tags. The mime time of the included js was wrong so I had to change the url. Here is a working version of your codepen: http://codepen.io/anon/pen/EpFxe But yeah, it seems like the form is not published to the modal controller's scope. I'm not sure why that is. |
Thanks for the trick with putting form as an argument. Yeah, sorry for that Anyway. I've altered my fiddle just to still keep the error obvious. And your one shows pretty neat workaround. |
It's due to the way Angular handles transclusion. See angular/angular.js#5489 and angular-ui/bootstrap#969. |
This |
If there is a form in modal partial view, modal window controller doesn't have an access to it.
This is codepen, in console you can see the bug (click "Open Me" and then "Tell Me")
Karan solved the problem here, but at first glance, I'm not sure that this is the easiest and the right solution.
The text was updated successfully, but these errors were encountered: