Skip to content

Commit

Permalink
fix: 🐛 pass injector to component ref
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Jan 28, 2023
1 parent 6e0cc67 commit a9d5217
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions projects/ngneat/overview/src/lib/views/comp-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export class CompRef<T> implements ViewRef {
});
} else {
this.compRef = createComponent<T>(options.component, {
elementInjector: options.injector,
environmentInjector: options.environmentInjector
});
options.appRef.attachView(this.compRef.hostView);
Expand Down

0 comments on commit a9d5217

Please sign in to comment.