typescript - How to move projected content of a component into different place in DOM upon projection like in Angular Material M

In Angular Material there is a component MatTab and we use it like this:<mat-tab-group><mat-t

In Angular Material there is a component MatTab and we use it like this:

<mat-tab-group>
  <mat-tab label="First"> Content 1 </mat-tab>
  <mat-tab label="Second"> Content 2 </mat-tab>
  <mat-tab label="Third"> Content 3 </mat-tab>
</mat-tab-group>

But upon inspecting elements that were created in the DOM the element <mat-tab> is not present and projected content is moved in <mat-tab-body>.

I want to move the projected content somewhere else and delete the element in which the content was projected into at the beginning. How can I achieve this behavior?

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744896728a4599740.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信