I need to refer my form to do some think. This my hmtl code is:
<form #formField="ngForm">
<div class="row">
<div class="section-border">
I need to take the refer to form so I do this in my ts:
@ViewChild('formField', { static: true }) flux: NgForm;
ngOnInit(): void {
console.log("first");
console.log(this.flux) //here is undefined
The problem is when I need to take the form, it is undefined.
Anyone can help me?