title: How to load the ng-template in separate file?
body: <p>In below sample, I have used <code>ng-template</code> like below and it is working fine.</p>
  
  <blockquote>
    <p>Sample link: <a href="https://stackblitz.com/edit/angular-mdksym-bihcup?file=default.html" rel="noreferrer">click here</a></p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ng-template #template let-dataSource=""&gt;
    &lt;span *ngIf="dataSource.iconCss" class="e-menu-icon {{dataSource.iconCss}}"&gt;&lt;/span&gt; {{dataSource.header}} {{dataSource.text}}
    &lt;span *ngIf="dataSource.templateHeader" class="e-login-content"&gt;
          &lt;button ejs-button cssClass="e-info"&gt;Sign In&lt;/button&gt;
        &lt;/span&gt;
  &lt;/ng-template&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But <strong>I want to create a new file for <code>ng-template</code></strong> content and I want to use it in another file. I have tried like below but not working. Please help me find a solution for this case.</p>
  
  <blockquote>
    <p>template.html</p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ng-template #template let-dataSource=""&gt;
    &lt;span *ngIf="dataSource.iconCss" class="e-menu-icon {{dataSource.iconCss}}"&gt;&lt;/span&gt;
    {{dataSource.header}} {{dataSource.text}}
    &lt;span *ngIf="dataSource.templateHeader" class="e-login-content"&gt;
      &lt;button ejs-button cssClass="e-info"&gt;Sign In&lt;/button&gt;
    &lt;/span&gt;
  &lt;/ng-template&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <blockquote>
    <p>default.html</p>
  </blockquote>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="control-section"&gt;
    &lt;ejs-menu #menu [items]='dataSource' [fields]='menuFields'&gt;
      &lt;ng-container *ngTemplateOutlet="template;"&gt;&lt;/ng-container&gt;
    &lt;/ejs-menu&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <blockquote>
    <p>Sample 2: <a href="https://stackblitz.com/edit/angular-mdksym-r76qei?file=template.html" rel="noreferrer">sample 2</a></p>
    
    <p>ref stackoverflow question: <a href="https://stackoverflow.com/questions/49404822/angular2-ng-template-in-a-separate-file">angular2 ng-template in a separate file</a> </p>
  </blockquote>