How to lazy load Angular 2 components in a TabView (PrimeNG)?

前端 未结 5 828
野的像风
野的像风 2020-12-30 16:37

It is my app.component.ts:

import { Component } from \'@angular/core\';

@Component({
    templateUrl: \'app/app.component.html\',
    selector: \'my-app\'
}         


        
5条回答
  •  生来不讨喜
    2020-12-30 16:49

    Primeng tabview has an "lazy" attribute which is default to "false". You can set it as follows

    
    

提交回复
热议问题