Guest User

Untitled

a guest
Dec 11th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. @Component({
  2. selector: 'app-hello',
  3. templateUrl: `hello.component.${environment.client}.html`
  4. })
  5.  
  6. const customerComponents = [CustomerModule];
  7. const defaultComponents = [DefaultModule];
  8.  
  9. function getExports() {
  10. if (env.customer === 'customer1') {
  11. return customer1Components;
  12. }
  13.  
  14. return defaultComponents;
  15. }
  16.  
  17. @NgModule({
  18. imports: [
  19. MuenchenModule,
  20. DefaultModule,
  21. CommonModule
  22. ],
  23. declarations: [],
  24. exports: getExports()
  25. })
  26. export class CustomerComponentsModule {}
Add Comment
Please, Sign In to add comment