You might look at ng-include if you're doing hot swapping of templates, Angular provides this functionality out of box with a few extensions, so you wouldn't need to rely on your own directive

http://code.angularjs.org/1.2.13/docs/api/ng.directive:ngInclude