title: Angular 6 - Can't use ngModel
body: <p>I'm using Angular 6. And I want to use ngModel like so:</p>
  
  <pre><code>&lt;input type="text" [(ngModel)]="textValue"&gt;
  </code></pre>
  
  <p>On the html I was getting the following error:</p>
  
  <pre><code>Can't bind to 'ngModel' since it isn't a known property of 'input'
  </code></pre>
  
  <p>When I searched I learnt that I have to import FormsModule. So in my package json I added the angular forms like so:</p>
  
  <pre><code>"dependencies": {
          "@angular/core": "^6.0.4",
          "@angular/forms": "^0.2.0"
     ...
  </code></pre>
  
  <p>Did a npm install and then on the app.module,</p>
  
  <p>I added FormsModule to imports,</p>
  
  <pre><code>imports: [
          CommonModule,
          FormsModule,
      ],
  </code></pre>
  
  <p>But when I tried importing FormsModule from angular/forms,</p>
  
  <pre><code>import { FormsModule } from '@angular/forms';
  </code></pre>
  
  <p>It says:</p>
  
  <pre><code>Module '"PATH-TO-PROJECT/node_modules/@angular/forms/index"' has no exported member 'FormsModule'
  </code></pre>
  
  <p>What should I do to get mgModel working on Angular 6?</p>