title: Angular 4 - render template from string variable holding template
body: <p>How to render a html using a string variable (holding template) - Angular4.</p>
  
  <p><strong>sample.component.ts</strong></p>
  
  <pre><code>let stringTemplate = "&lt;div&gt;&lt;p&gt;I should be rendered as a HTML&lt;br&gt;&lt;/p&gt;&lt;/div&gt;";
  </code></pre>
  
  <p><strong>sample.component.html</strong> should be rendered based on elements in variable <strong>stringTemplate</strong></p>
  
  <p>NOTE: <strong>stringTemplate</strong> is not static. Will be getting its data from server.</p>