Skip to content

Commit 24e28c6

Browse files
committed
fix(lib): add component ref getter to default element boundary strategy
That forwards original component ref from the default strategy
1 parent 62ff5bf commit 24e28c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

projects/ngx-element-boundary/element-strategy/default/src/element-boundary-ng-element-strategy.ts

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ export class DefaultElementBoundaryNgElementStrategy
6565
// so we are using late initialization of stream
6666
events = maybeLateInitStream(this.defaultStrategy, 'events');
6767

68+
// Forward original `ComponentRef` from the default strategy
69+
protected get componentRef(): ComponentRef<any> | undefined {
70+
return this.getComponentRef();
71+
}
72+
6873
private options: DefaultElementBoundaryNgElementStrategyOptionsDefault;
6974

7075
constructor(

0 commit comments

Comments
 (0)