Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Component({
- selector: 'app-hello',
- templateUrl: `hello.component.${environment.client}.html`
- })
- const customerComponents = [CustomerModule];
- const defaultComponents = [DefaultModule];
- function getExports() {
- if (env.customer === 'customer1') {
- return customer1Components;
- }
- return defaultComponents;
- }
- @NgModule({
- imports: [
- MuenchenModule,
- DefaultModule,
- CommonModule
- ],
- declarations: [],
- exports: getExports()
- })
- export class CustomerComponentsModule {}
Add Comment
Please, Sign In to add comment