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 ?