title: Alternatives to $templateCache in Angular2
body: <p>When we think of using <code>template</code> in Angular2 or Angular1.X, we know below is one of the basic way of writing:</p>
  
  <p><code>template: './template-ninja.html'</code></p>
  
  <p>and with Angular1.X, we can previously cache all of templates with <code>$templateCache.put()</code> as follows:</p>
  
  <pre><code>var myApp = angular.module('Ninja', []);
  myApp.run(function($templateCache) {
    $templateCache.put('templateNinja.html', 'This is the content of the template-ninja');
  });
  </code></pre>
  
  <p>which will lessen the number of http requests.
  I'd like to know how can I implement the same with Angular2. Could anyone help?
  Thanks.</p>