New to Kendo UI for Angular? Start a free 30-day trial
MessageTemplateDirective
Defines a template for displaying Chat messages.
To define a message template, nest an <ng-template>
tag with the kendoChatMessageTemplate
directive inside the <kendo-chat>
component.
The template context is set to the message
instance.
For more information, refer to the article on message templates.
html
<kendo-chat>
<ng-template kendoChatMessageTemplate let-message>
<div>Message: {{ message.text }}</div>
</ng-template>
</kendo-chat>
Selector
[kendoChatMessageTemplate]