Given the following component (with selector my-template):
<form #theForm="ngForm">
<ng-content></ng-content>
</form>
and use it like this:
<my-template>
<input type="text" required name="firstName" [(ngModel)]="firstName"/>
</my-template>
The form is always valid - even though the input is invalid. How can I make this work so that the form is invalid when the input is invalid?
Live demo: https://plnkr.co/edit/lWUe6oeBk6ccsE2JxNKb?p=preview