New to Kendo UI for Angular? Start a free 30-day trial
RatingSelectedItemTemplateDirective
Renders the selected rating item content.
To define an item template, nest an <ng-template>
tag with the kendoRatingSelectedItemTemplate
directive inside the <kendo-rating>
tag (see example).
The index of the currently selected item is available as an implicit context using the let-index="index"
syntax.
html
<kendo-rating [value]="ratingValue">
<ng-template kendoRatingSelectedItemTemplate let-index="index">
<span>Selected item: {{ index }}</span>
</ng-template>
</kendo-rating>
Selector
[kendoRatingSelectedItemTemplate]