title: Angular2 login form doesn't catch password
body: <p>I am creating and Angular2 login form but I have problems because the component is not catching the password...</p>
  
  <p>This is the view:</p>
  
  <pre><code>&lt;div class="col-md-4"&gt;
      &lt;p&gt;
          &lt;label&gt;Correo electrónico:&lt;/label&gt;
          &lt;input type="email" class="form-control"   [(ngModel)]="user.email" required /&gt;
          &lt;span *ngIf="!email.valid"&gt;El email es obligatorio&lt;/span&gt;
      &lt;/p&gt;
  
      &lt;p&gt;
          &lt;label&gt;Contraseña:&lt;/label&gt;
          &lt;input type="password" class="form-control"  [(ngModel)]="user.password" required /&gt;
          &lt;span *ngIf="!password.valid"&gt;La contraseña es obligatoria&lt;/span&gt;
      &lt;/p&gt;
  
      &lt;button (click)="onSubmit()" &gt; Entrar &lt;/button&gt;
  </code></pre>
  
  <p>And this is the component:</p>
  
  <pre><code>import { Component, OnInit }  from '@angular/core';
  import { ActivatedRoute, Params, Router } from '@angular/router';
  
  
  import {User}         from '../model/user';
  import {LoginService}  from '../services/login.service';
  
  
  @Component({
      selector: 'login',
      templateUrl: 'app/views/login.html'
  })
  
  // Clase del componente donde irán los datos y funcionalidades
  export class LoginComponent implements OnInit {
      public tituloLogin: string = "Identificate";
      public user;
  
  constructor(
          private _loginService: LoginService,
          private _route: ActivatedRoute,
          private _router: Router
      ){} 
  
      ngOnInit(){
  
          this.user = {
              "email": "",
              "password": "",
              "gethash": "false"
          };
  
      }
  
      onSubmit(){
          console.log(this.user); 
  }
      }
  </code></pre>
  
  <p>The system catch correctly the email with the model but not the password...</p>
  
  <p>Thanks!!!</p>