Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set default value in dropdown angular 7

Set validation.min with required as well like below one.

supplierId: ["", [Validators.required, Validators.min(1)]]
supplierId is always greater zero so min(1) works for you.
 
PREVIOUS NEXT
Tagged: #set #default #dropdown #angular
ADD COMMENT
Topic
Name
1+8 =