Last active
July 28, 2019 09:38
-
-
Save arturovt/ce18a16eb2d437ea2b4185c455e293a5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule, ComponentFactoryResolver, ComponentFactory } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { CarouselComponent } from './carousel.component'; | |
@NgModule({ | |
imports: [CommonModule], | |
declarations: [CarouselComponent] | |
}) | |
export class CarouselModule { | |
constructor(private resolver: ComponentFactoryResolver) {} | |
public resolveCarouselComponentFactory(): ComponentFactory<CarouselComponent> { | |
return this.resolver.resolveComponentFactory(CarouselComponent); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment