'Angular 7 Multi field filter

I have 8 input fields. The required fields are only 5. Also have the submit button, filter and clear filter buttons. For form submit all required fields are necessary to submit but for filter functionality all required fields are not necessary. Suppose I've entered the values in two required fields and two other fields then click the filter button. Fetch the entered values from the API. And show in the data table.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source