Skip to content

Commit 628468f

Browse files
committed
fix(elements): More reliable check for angular component.
1 parent 48c7daf commit 628468f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/igniteui-angular-elements/src/app/custom-strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ class IgxCustomNgElementStrategy extends ComponentNgElementStrategy {
418418
return value;
419419
}
420420

421-
if (value?.constructor?.name.startsWith("_Igx")) {
421+
if (value?.__ngContext__) {
422422
const componentConfig = this.config.find((info: ComponentConfig) => value.constructor === info.component);
423423
if (componentConfig?.templateProps) {
424424
return this.createElementsComponentProxy(value, componentConfig);

0 commit comments

Comments
 (0)