mirror of https://github.com/abpframework/abp.git
2 changed files with 24 additions and 3 deletions
@ -0,0 +1,15 @@ |
|||
import { CONTENT_STRATEGY, DOMInsertionService } from '@abp/ng.core'; |
|||
import { inject, InjectionToken } from '@angular/core'; |
|||
import styles from '../constants/styles'; |
|||
import { chartJsLoaded$ } from '../utils/widget-utils'; |
|||
|
|||
export const THEME_SHARED_APPEND_CONTENT = new InjectionToken<void>('THEME_SHARED_APPEND_CONTENT', { |
|||
providedIn: 'root', |
|||
factory: () => { |
|||
const domInsertion: DOMInsertionService = inject(DOMInsertionService); |
|||
|
|||
domInsertion.insertElement(CONTENT_STRATEGY.AppendStyleToHead(styles)); |
|||
|
|||
import('chart.js').then(() => chartJsLoaded$.next(true)); |
|||
}, |
|||
}); |
|||
Loading…
Reference in new issue