Skip to content

Commit

Permalink
feat: make valError input required
Browse files Browse the repository at this point in the history
  • Loading branch information
jnizet committed May 5, 2023
1 parent 02d8d46 commit 12d5c74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ValidationErrorContext>) {}

Expand Down

0 comments on commit 12d5c74

Please sign in to comment.