How parent component pass HTMLmultiple ng-templates to child component in Angular?
Example the Parent component contains multiple ng-templates:
Child component.html needs to receive the ng-templates from parent and put inside app-menu:
What I am attempting to do is that I needSo it will look something like this in the Child component.html to get the ng-template to be placed inside app-menu like this,:
<app-menu> <ng-template>Item A<1</ng-template> //having trouble sending this to app-menu from parent <ng-template>Item B<2</ng-template> < //having trouble sending this to app-menu from parent <app-menu> but it seems like the ng-content is empty causing app-menu not getting the multiple ng-templates to render these items.
<app-menu> //empty </app-menu> How can I send multiple ng-templates to child component and allow child component to put those templates inside option-menu like this?
<app-menu> <ng-template>Item 1</ng-template> //having trouble sending this to app-menu from parent <ng-template>Item 2</ng-template> //having trouble sending this to app-menu from parent <app-menu>