I've been thinking about easy ways to use 3rd party libraries such as jquery-ui.
Current examples that attempt to use widgets/directives to use jquery-ui or twitter bootstrap all look hard, and are in various states of in-progress or unfinished. I wonder if that is because writing them is quite tricky?
Anyway, the approach I am taking in this fiddle
http://jsfiddle.net/zdam/vGjXH/ is to use a service that acts a thin wrapper to the 3rd party library, and then your controller invokes this wrapper service passing it the required parameters.
The example show 2 approaches, the first uses html in the markup but hidden, the second tries to loada template, but this does not work yet :(
Thoughts?
Cheers, Adam.