From d6fbab292c8e27093e90a264b933bef83a5fea46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dabiel=20Gonz=C3=A1lez=20Ramos?= Date: Tue, 27 Jun 2023 23:47:46 +0300 Subject: [PATCH] fix(angular wrapper): this.appInits[i] is not a function --- packages/bee-q-angular/src/bee-q.module.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/packages/bee-q-angular/src/bee-q.module.ts b/packages/bee-q-angular/src/bee-q.module.ts index 6b16c2a9c..076bc0f62 100644 --- a/packages/bee-q-angular/src/bee-q.module.ts +++ b/packages/bee-q-angular/src/bee-q.module.ts @@ -1,5 +1,5 @@ import { CommonModule } from '@angular/common'; -import { APP_INITIALIZER, ModuleWithProviders, NgModule } from '@angular/core'; +import { ModuleWithProviders, NgModule } from '@angular/core'; import { defineCustomElements } from '@bee-q/core/dist/loader'; import { DIRECTIVES } from './directives'; @@ -8,18 +8,10 @@ import { DIRECTIVES } from './directives'; imports: [CommonModule], declarations: [...DIRECTIVES], exports: [...DIRECTIVES], - providers: [ - { - provide: APP_INITIALIZER, - useFactory: () => { - return defineCustomElements(); - }, - multi: true, - }, - ], }) export class BeeQModule { static forRoot(): ModuleWithProviders { + defineCustomElements(); return { ngModule: BeeQModule, };