Last active
October 10, 2020 06:59
-
-
Save thisiszoaib/5612e420785b6a16e7702480ad74af84 to your computer and use it in GitHub Desktop.
Code splitting 3
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
| dynamicComponent: Type<ReportCardComponent>; | |
| constructor() { } | |
| async loadComponent(): Promise<any> { | |
| const imported = await import('./report-card/report-card.component'); | |
| this.dynamicComponent = imported.ReportCardComponent; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment