title: Pass parent ng-template data to child ng-template
body: <p>Can we have one ng-template inside another ng-template.if its possible how to pass parent ng-template data to its child ng-template? I tried out a couple of different ways but nothing works for me.</p>
  
  <pre><code> &lt;ng-template let-r="result" #rt&gt;
          {{r.categoryName}}
          &lt;li *ngFor="let item of r.subCategoriesList"&gt;
            {{item}}
           &lt;/li&gt;
  
       &lt;ng-template&gt;
         // i need get some data to this ng-templete from parent
      &lt;/ng-template&gt;
  
  &lt;/ng-template&gt;
  </code></pre>