Created
June 6, 2019 23:23
-
-
Save arturovt/f4d5adf09ea3fd3268ef0982c6d9f797 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
export class ChartComponent { | |
public async ngOnInit(): Promise<void> { | |
const { Chart } = await import('chart.js'); | |
this.zone.runOutsideAngular(() => { | |
new Chart(...); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment