fix(theme-shared): move chart.js importing in the appendScript function

pull/1746/head
mehmet-erim 6 years ago
parent f90f389fe5
commit 1b30f90f79

@ -20,10 +20,10 @@ import styles from './contants/styles';
import { ErrorHandler } from './handlers/error.handler';
import { chartJsLoaded$ } from './utils/widget-utils';
import('chart.js').then(() => chartJsLoaded$.next(true));
export function appendScript(injector: Injector) {
const fn = function() {
import('chart.js').then(() => chartJsLoaded$.next(true));
const lazyLoadService: LazyLoadService = injector.get(LazyLoadService);
return forkJoin(

Loading…
Cancel
Save