I found that simply using twitter bootstrap modals, as the tags loaded on twitter boottrap say, is enough to make them work.
I use a modal form to edit the user form on my admin page. The button that I launch to launch has the ng-click attribute, which passes the user ID to a function in this area, which in turn passes this message to the service. The content of the modal object is bound to its own controller, which listens for changes from the service and updates the values ββfor display in the form.
Thus, the ng-click attribute actually disables data transfer, the modal is still triggered using data and href tags. As for the content of the modal itself, it is partial. So, I have several buttons on the page that launch one instance of the module, which is in the markup, and depending on the button click, the values ββin the form in this module differ.
I will look at my code and see if I can pull everything out of it to create a demo version of plnkr.
EDIT: I threw together a plunger demo demonstrating essentially what I use in my application: http://embed.plnkr.co/iqVl0Wb57rmKymza7AlI/preview
A bonus, he received several tests to ensure the correspondence of two password fields (or underlines them as erroneous) and disables the submit button if the passwords do not match, or for the username and password fields for new users are empty. Of course, save does nothing, because it is just a demo.
Enjoy.
Will vincent
source share