François Romain
François Romain

Reputation: 14393

angular directive to call UI Bootsrap modal

I am trying to make a directive to call a modal (with bootstrap-ui) to update some properties. the modal content would be different depending on where it's called from.

updated

I made a plunker to illustrate this (updated and working thanks to moderndegree's contribution)

now, is it possible to externalize the html code of the modal from the html file and to put the modal controller functions inside the directive, so it would be possible to call it from different templates ?

Upvotes: 0

Views: 616

Answers (1)

Brian Lewis
Brian Lewis

Reputation: 5729

Here is the first part of your question:

http://plnkr.co/edit/lQZfWO?p=preview

Upvotes: 1

Related Questions