Why don't you put your custom directive in the right place within you page's html, and then use transclude
to swap that with anything you put in the directive's template
?
↧
Answer by developer10 for Append directive to body
↧