title: Angular - unable to get the email value in .ts file from ngForm
body: <p>I want to get form value in the <code>.ts</code> file. Below is my code:</p>
  
  <pre><code>&lt;div class="wrapper"&gt;
        &lt;form autocomplete="off" class="form-signin" method="post" (ngSubmit)="loginForm.form.valid &amp;&amp; onSubmit(loginForm)" #loginForm="ngForm"&gt;
          &lt;div class="text-center mb-4"&gt;
              &lt;h1&gt;Sign In&lt;/h1&gt;
          &lt;/div&gt;
  
          &lt;div class="form-label-group"&gt;
              &lt;label&gt;Email&lt;/label&gt;
              &lt;input 
                type="email" 
                id="input-email" 
                [(ngModel)]="adminemail" 
                #admin_email="ngModel" 
                class="form-control" 
                placeholder="Email address" 
                autocomplete="email" autofocus [ngModelOptions]="{standalone: true}"&gt;
          &lt;/div&gt;
  
          &lt;div class="form-label-group"&gt;
              &lt;label&gt;Password&lt;/label&gt;
              &lt;input 
                type="password" 
                class="form-control" 
                placeholder="Password" 
                autocomplete="new-password" 
                name="password"
                id="input-password"
                [(ngModel)]="password"&gt;
          &lt;/div&gt;
          &lt;button class="btn btn-lg btn-primary btn-block" type="submit"&gt;Sign in&lt;/button&gt;
          &lt;div&gt;
            &lt;p&gt;
              &lt;a routerLink='/pages'&gt;Forgot Password&lt;/a&gt;
            &lt;/p&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>In the <code>.ts</code> file, I have the following <code>.html</code> code:</p>
  
  <pre><code>import { NgForm } from '@angular/forms';
  ...
  ...
  onSubmit(form: NgForm) {
    console.log(form.value)
  }
  </code></pre>
  
  <p>I see only the value of password in the console log and not the email.</p>
  
  <blockquote>
    <p>{password: "123456"}</p>
  </blockquote>