i create stackblitz project
If i pass formcontrolname to ng-template using ngtemplateoutlet it is showing Error
if i use formControlName i am getting this error
Console was cleared ERROR Error: formControlName must be used with a parent formGroup directive. You'll want to add a formGroup directive and pass it an existing FormGroup instance (you can create one in your class).
Example:
`<div [formGroup]="myGroup">
` In your class:this.myGroup = new FormGroup({ firstName: new FormControl() });
if i use formControl i am getting another error..
i need to dynamicaly pass the formcontrolname