Skip to content

Commit

Permalink
fix(angular wrapper): this.appInits[i] is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
dgonzalezr committed Jun 27, 2023
1 parent 91a46e1 commit d6fbab2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions packages/bee-q-angular/src/bee-q.module.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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<BeeQModule> {
defineCustomElements();
return {
ngModule: BeeQModule,
};
Expand Down

0 comments on commit d6fbab2

Please sign in to comment.