Within my ng-template, there is a form displayed in a modal.
.ts
@ViewChild('newControlForm', {static: false}) public newControlForm: NgForm;
.html
<ng-template>
<form role="form" #newControlForm="ngForm">
</form>
</ng-template>
However, because the form is located inside ng-template, it does not render correctly, resulting in this.newControlForm being undefined.
Is there a solution to this issue?