title: Angular form input value undefined
body: <p>I'm trying to get the value of an input field in my first ever Angular form, but it is always undefined, and I can't figure out why. I'm importing FormsModule correctly, and I can reference the form object fine, so I must be missing something obvious.</p>
  
  <p>My components HTML</p>
  
  <pre><code>&lt;form #searchValue='ngForm' class="" (ngSubmit)='submitSearch(searchValue)'&gt;
    &lt;div&gt;
      &lt;input type="text" name="q" placeholder="search"&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>And my components ts method (Shortened)</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { FormsModule } from '@angular/forms';
  
  @Component({
    selector: 'google-search',
    templateUrl: './google.component.html',
    styleUrls: ['./google.component.css']
  })
  
  export class GoogleComponent implements OnInit {
  
    constructor() { }
  
    ngOnInit() {
  
    }
  
    submitSearch(formData) {
      console.log(this.searching);
      console.log(formData.value.q);    
    }
  }
  </code></pre>
  
  <p>Any ideas to why this is?</p>