title: precompile angular js template to speed up application startup
body: <p>I have a big angular application with 5 templates included in the main page using </p>
  
  <pre><code> &lt;script type="text/ng-template" id="/myMainTemplate.html"&gt;...&lt;/script&gt;
   &lt;script type="text/ng-template" id="/myTemplatePage2.html"&gt;...&lt;/script&gt;
   &lt;script type="text/ng-template" id="/myTemplatePage3.html"&gt;...&lt;/script&gt;
   &lt;script type="text/ng-template" id="/myTemplatePage4.html"&gt;...&lt;/script&gt;
  </code></pre>
  
  <p>However, my application takes a lot of time to startup. </p>
  
  <p>Removing the templates 2/3/4 fix it but of course broke the app, my guess is that angularjs takes too much time to compile the 5 templates.</p>
  
  <p>Is there a way to pre-compile angularjs templates, for example with nodejs or something similar (the same way we can compile templates with handlebar maybe) ?</p>
  
  <p>If I understand well the <code>$compile</code> instruction, the idea would be to move the instruction <code>$compile(myTemplate)</code> in the server-side inside of the client</p>