Hi, I want to create an element (modal box with dynamic content) when a use click on some buttons. I thought about creating a Directive but how I understood it is that a Directive, with its "template" parameter is meant to manipulate the DOM inside of himself, and also if I have "<div the-name-of-my-directive></div> 10 times it will create 10 times what I have in my "template" param. In my case it's a modal box so I want to create it at the end of the body and when the user click on close, destroy it. So only one instance of my modal box at the same time.
Do you think I should use a Directive ? Any other idea ? Thanks ! -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
