From 12d5c74acdec7f2f2e9a247df2872eca506be7c7 Mon Sep 17 00:00:00 2001 From: jnizet Date: Fri, 5 May 2023 10:41:42 +0200 Subject: [PATCH] feat: make valError input required --- projects/ngx-valdemort/src/lib/validation-error.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/ngx-valdemort/src/lib/validation-error.directive.ts b/projects/ngx-valdemort/src/lib/validation-error.directive.ts index 4d7b9630..5de3b5a9 100644 --- a/projects/ngx-valdemort/src/lib/validation-error.directive.ts +++ b/projects/ngx-valdemort/src/lib/validation-error.directive.ts @@ -30,7 +30,7 @@ export class ValidationErrorDirective { /** * The type of the error that the content of the template must display. */ - @Input('valError') type = ''; + @Input({ alias: 'valError', required: true }) type = ''; constructor(public templateRef: TemplateRef) {}