showing results for - "how to bind two ng content in a component angular"
Iker
10 Jul 2017
1app.comp.html
2<app-child>
3    <div header >This should be rendered in header selection of ng-content</div>
4    <div body >This should be rendered in body selection of ng-content</div>
5</app-child>
6
7child.comp.html
8<div class="header-css-class">
9    <ng-content select="[header]"></ng-content>
10</div>
11<div class="body-css-class">
12    <ng-content select="[body]"></ng-content>
13</div>