Browse Source

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

pull/1746/head
mehmet-erim 7 years ago
parent
commit
1b30f90f79
  1. 4
      npm/ng-packs/packages/theme-shared/src/lib/theme-shared.module.ts

4
npm/ng-packs/packages/theme-shared/src/lib/theme-shared.module.ts

@ -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