File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed 
shared/cms/components/content-include Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -12,20 +12,24 @@ import { takeUntil } from 'rxjs/operators';
1212
1313import  {  CMSFacade  }  from  'ish-core/facades/cms.facade' ; 
1414import  {  ContentPageletEntryPointView  }  from  'ish-core/models/content-view/content-view.model' ; 
15+ import  {  GenerateLazyComponent  }  from  'ish-core/utils/module-loader/generate-lazy-component.decorator' ; 
1516import  {  SfeMetadataWrapper  }  from  'ish-shared/cms/sfe-adapter/sfe-metadata-wrapper' ; 
1617
1718/** 
1819 * The Content Include Container Component renders the content of the include with the given 'includeId'. 
19-  * For rendering is  uses the {@link  ContentPageletContainerComponent} for each sub pagelet. 
20+  * For rendering it  uses the {@link  ContentPageletContainerComponent} for each sub pagelet. 
2021 * 
2122 * @example  
2223 * <ish-content-include includeId="pwa.include.homepage.pagelet2-Include"></ish-content-include> 
24+  * or with lazy loading within the application shell 
25+  * <ish-lazy-content-include includeId="include.footer.pagelet2-Include"></ish-lazy-content-include> 
2326 */ 
2427@Component ( { 
2528  selector : 'ish-content-include' , 
2629  templateUrl : './content-include.component.html' , 
2730  changeDetection : ChangeDetectionStrategy . OnPush , 
2831} ) 
32+ @GenerateLazyComponent ( ) 
2933export  class  ContentIncludeComponent  extends  SfeMetadataWrapper  implements  OnInit ,  OnDestroy ,  OnChanges  { 
3034  /** 
3135   * The ID of the Include whoes content is to be rendered. 
Original file line number Diff line number Diff line change 1+ /lazy ** 
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import { ProductImageComponent } from './header/product-image/product-image.comp
3535import  {  SearchBoxComponent  }  from  './header/search-box/search-box.component' ; 
3636import  {  SubCategoryNavigationComponent  }  from  './header/sub-category-navigation/sub-category-navigation.component' ; 
3737import  {  UserInformationMobileComponent  }  from  './header/user-information-mobile/user-information-mobile.component' ; 
38+ import  {  LazyContentIncludeComponent  }  from  './shared/lazy-content-include/lazy-content-include.component' ; 
3839
3940const  importExportModules  =  [ 
4041  CaptchaExportsModule , 
@@ -78,6 +79,7 @@ const exportedComponents = [
7879    HeaderNavigationComponent , 
7980    HeaderSimpleComponent , 
8081    LanguageSwitchComponent , 
82+     LazyContentIncludeComponent , 
8183    LoginStatusComponent , 
8284    MiniBasketComponent , 
8385    ProductCompareStatusComponent , 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments