title: Webpack 2 Angular 1 template loader?
body: <p>Since webpack 2 introduced ES6 module system, <code>require('./mytemplate.html')</code> syntax isn't working in an angular 1 and webpack 2 based project. </p>
  
  <p>Unable to find a loader which works with webpack 2 to load html templates. </p>
  
  <p>What is the right way to load angular 1 template files using webpack2? </p>
  
  <p>Note: I am using typescript classes to create angular 1 components, which have template: require('./mytemplate.html') property. As an example.</p>
  
  <pre><code>export class MyComponent implements ng.IComponentOptions {
      public template: string = require('./mytempalte.html');
      public controller = MyControllerClass;
  }
  </code></pre>