OK gsans, I'll make other tests. Thank you for your help.
I didn't understand your point. What do I have to change?
Hi, and thanks for the post.
I used your code to get dynamic template but I am getting an error despite the code is working.
Do you know what it is?
At Chrome = TypeError: undefined is not a function at forEach.attr
At Firefox = Error: element.setAttribute is not a function
You can see more datails on: http://stackoverflow.com/questions/30668661/angular-directive-with-dynamic-template