Skip to content

Commit

Permalink
fix(angular wrapper): this.appInits[i] is not a function (#304)
Browse files Browse the repository at this point in the history
Solution provided by @mavgustin
  • Loading branch information
dgonzalezr committed Jul 3, 2023
1 parent 7862ba6 commit 7f64ee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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
2 changes: 1 addition & 1 deletion packages/bee-q/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"build": {
"dependsOn": ["generate-icons"],
"executor": "@nxext/stencil:build",
"outputs": ["{options.outputPath}", "packages/bee-q", "packages/bee-q-angular/src", "packages/bee-q-react/src"],
"outputs": ["{options.outputPath}"],
"options": {
"projectType": "library",
"tsConfig": "packages/bee-q/tsconfig.lib.json",
Expand Down

0 comments on commit 7f64ee3

Please sign in to comment.