Closed
Description
Documentation Feedback
The example for the form field mat-error is using a function call in the template:
@if (email.invalid) {
{{getErrorMessage()}}
}
Best practices mentions to avoid using function calls in templates, but the documentation contains this example since the Material version 5. After all, is it correct using a function call in template for the mat-error?
Affected documentation page
https://material.angular.io/components/form-field/overview#error-messages