Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy loadingn not working - unloadWhenInvisible doing nothing #466

Open
alexanderbelokon-mway opened this issue Mar 21, 2021 · 2 comments
Open

Comments

@alexanderbelokon-mway
Copy link

Describe the bug
Even though in the config lazyLoading and unloadWhenInvisible are both on true, the elements are loaded in the DOM.

To Reproduce
Steps to reproduce the behavior:

  1. Template:
<super-tabs [config]="config" tabChange="onTabChange($event)">
     <ng-container *ngFor="let tab of superTabs">
       <super-tab>
         <ng-template [ngComponentOutlet]="tab.component"></ng-template>
       </super-tab>
     <ng-container>
</super-tabs> 
  1. Config:
  this.config = {
    lazyLoad: true,
    unloadWhenInvisible: true,
  };

Expected behavior
The content of <super-tab> should be not loaded until the tab is active.

@chitkosarvesh
Copy link

I cannot find these properties in the documentation. Any update on this? Is there a beta that we can try? we're sort of desperate to implement this in our application.

@novalain
Copy link

Also messing with this, seems like lazy loading should really be supported since it's the default behavior in ionic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants