I am using Angular 4 reactive form and have created a directive (called in parent input and child input separately) to show the errors below each input field if someone write and removes the content, the error is shown below that field (a new div element is created) but now I want to show the errors in parent as well as child component when I submit the form (submit button is in parent class)