using ng-content in ng-template

后端 未结 2 1787
醉话见心
醉话见心 2020-12-30 02:17

Is it possible to use (and its select option) inside a or does it only works within a component ?

2条回答
  •  再見小時候
    2020-12-30 02:56

    You can use ng-content inside ng-template.

    This is something I put together a while back demonstrating putting the ng-content somewhere on dom based on property. look at the html of tabs.component to see this in use.

    https://stackblitz.com/edit/mobile-ng-content

提交回复
热议问题