Angular Form validation on child components
问题 I've written a dynamic form in which there is a main part and sub parts based on a type that's selected in the main part (widget.type). Showing and hiding the sub parts is done with an ngSwitch. HTML of the form looks like this: <form class="widget-form cc-form" (ngSubmit)="saveChanges()" novalidate> <div class="forms-group"> <label for="title" i18n="@@title">Titel</label> <input class="form-control" id="title" name="title" type="text" [(ngModel)]="widget.title" required /> </div> <div class=