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) {}