Unplanned
Last Updated: 11 Apr 2025 21:35 by Landon
Landon
Created on: 04 Apr 2025 18:25
Category: Kendo UI for Angular
Type: Feature Request
5
Kendo does not properly support Angular's strictTemplates option

Kendo's Angular components that have optional inputs are not built correctly.

For example on the `kendo-avatar`component the input `imageSrc` is defined like this:

 @Input() imageSrc: string;

however, since it is an optional input it should be defined like this:

 @Input() imageSrc?: string;
// or
 @Input() imageSrc: string | undefined;
Because this is not built correctly we are unable to efficiently wrap Kendo components when Angular strictTemplates is enabled. strictTemplates is set to true by default in new Angular projects.
2 comments
Landon
Posted on: 11 Apr 2025 21:35

Hi Yanmario,

I don't believe labeling this as a "Feature Request" is correct. This is an incorrect implementation of Angular components and forces anyone using `strictTemplates` to unsafely lie to the compiler about a value existing when it is actually undefined by adding a `!` to the input value.

Thanks,

Landon

ADMIN
Yanmario
Posted on: 11 Apr 2025 07:47

Hi Landon,

Your observations are correct. The team has an internal issue to improve support for strictTemplates. The status will be updated to "Unplanned" and the type to "Feature Request."

Have a wonderful weekened.

Regards,
Yanmario
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!