My website includes an angular application, angular directive, controller, and various javascript functions. One of these functions involves dynamically adding HTML code to the page, which includes one of my angular directives. However, I've noticed that Angular does not render the directive's template when added in this way. How can I ensure that the directive is properly rendered in this scenario?