How to force Mat Tab body to render/bind html element for inactive tab

Published

I’m using angular mat-tab-group
How do i force angular to bind html element of inactive tabs, below is the html implementation

<mat-tab label="Test">
    <app-test></app-test>
</mat-tab>

the test.component.ts file did initialize and run, but the html element is not binded, view attached image below. is there a way to force angular to bind it? i’m intergrating some 3rd party libary that requires the html element to be binded when the component.ts files start executing or else it will break.

enter image description here

Source: Angular Material Quesions

Published
Categorized as angular, angular-material Tagged ,

Answers

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq