Angular 2 and TypeScript. How to compile HTML templates?
<p>So I have files <code>*.ts</code> and it is easy to understand how to compile into <code>*.js</code> using tsc. But a question is how to compile HTML templates which I use in <code>*.ts</code> files?</p>

<p>For example, this code appears after it is compiled and launched in HTML file:</p>

<pre><code>&lt;script id="__bs_script__"&gt;//&lt;![CDATA[
    document.write("&lt;script async src='/browser-sync/browser-sync-client.2.14.0.js'&gt;&lt;\/script&gt;".replace("HOST", location.hostname));
//]]&gt;&lt;/script&gt;
</code></pre>