Form validation

This example shows how to use angular's required validator in a reactive form to disable the submit button when the selection is empty.

Single select

Form valid: {{form0.valid}}
Component template
Component class

Multiple select

Form valid: {{form1.valid}}
Component template
Component class