Skip to content

Commit 5aa3b41

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Fix elements build.
1 parent bfc20ff commit 5aa3b41

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

projects/igniteui-angular-elements/src/app/wrapper/template-ref-wrapper.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,11 @@ const PREFIX_IMPLICIT_PROP = '$implicit';
1010
*/
1111
export class TemplateRefWrapper<C extends object> extends TemplateRef<C> {
1212

13-
public override get elementRef(): ElementRef<any> {
14-
return this.innerTemplateRef.elementRef;
15-
}
16-
13+
public override readonly elementRef: ElementRef<any>;
1714
/** Create a wrapper around TemplateRef with the context exposed */
1815
constructor(public innerTemplateRef: TemplateRef<C>, private _templateFunction: any, private embeddedViewDestroyCallback: (container: HTMLElement) => void) {
1916
super();
17+
this.elementRef = innerTemplateRef.elementRef;
2018
}
2119

2220
private _contentContext = new Map<string, TemplateRefWrapperContentContext>();

0 commit comments

Comments
 (0)