In my directive, I'd like to set the html of the element based on a template url:
element.html('some url to a template html file');
instead of
element.html('<div>test</div>').show();
how can I do that ?
EDIT
I do not wish to use templateUrl because the template must be dynamic. The template will change according to a scope variable set on the directive. Sorry if I haven't made myself clear before.