Skip to content

Commit 1936388

Browse files
MKirovaMKirova
authored andcommitted
chore(*): Use innerTemplateRef for ssrId.
1 parent fb16b00 commit 1936388

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ export class TemplateRefWrapper<C extends object> extends TemplateRef<C> {
1212

1313
public override readonly elementRef: ElementRef<any>;
1414

15+
/** @internal Angular 20 This was abstract getter now it's not. */
1516
public get ssrId(): string | null {
16-
return (this as any)._declarationTContainer?.tView?.ssrId || null;
17+
return (this.innerTemplateRef as any).ssrId;
1718
}
1819

1920
/** Create a wrapper around TemplateRef with the context exposed */

0 commit comments

Comments
 (0)