title: Render a custom directive from a controller variable
body: <p>I have a controller which fetches a template from the database. In this template i have a custom directive, for example:</p>
  
  <pre><code>&lt;custom-directive&gt; &lt;/custom-directive&gt;
  </code></pre>
  
  <p>I'm printing this template to my php document from the controller. The problem is that it won't render the custom directive after i print it from the controller.</p>
  
  <p>i'm really hoping you guys could help me out here. Is there anyway to let the custom directive render after the template is printed to the html?</p>
  
  <p>Many thanks.</p>