約3,730,000件1ページ目

日本語のみで絞り込む

2024/10/9 -I explicitly have to add 'Validators.required' and then the form is invalid when you leave the input empty. But I think the regex '[0-9]+' ...

... empty string or an empty array), to support optional controls. You can use the standard required validator if empty values should not be considered valid.

2026/2/3 -Either the documentation should be changed to not include the empty array as empty value for the required validator. Then it would be useful to ...

2023/10/19 -I have a form control typed as number but it doesn't have a initial value. Ok it starts with null, but since it's required is there a way to ...

The <input> element carries the HTML validation attributes: required and minlength . It also carries a custom validator directive, forbiddenName . For more ...

2022/2/15 -We'll start with an empty string, regexPattern = '' . We then loop over each of our banned words and add them to the empty string with a pipe in ...

2025/8/15 -The form control values can be null, because a control can be disabled. A disabled control yields null. getRawValue() returns the form value ...

2015/12/16 -[required] is used to initialize a validator for the control. After that, it would always validate even if the required attribute is removed.

2023/2/20 -Using Validators.pattern is one approach, and if you're just writing a single component is perfectly acceptable. Here's a Regular Expression ...

Empty values and nonnumeric values are left to other validators, such as required . Only props.step enables the validator; setting the HTML attribute ...