title: How to get value from ngModel?
body: <p>I have this form:</p>
  
  <pre><code>    &lt;form id="login-form" class="text-left" (ngSubmit)="submitLogin()"&gt;
        &lt;div class="login-form-main-message"&gt;&lt;/div&gt;
                  &lt;div class="main-login-form"&gt;
                      &lt;div class="login-group"&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="lg_username" class="sr-only"&gt;Username&lt;/label&gt;
                              &lt;input type="text" class="form-control" id="lg_username" name="lg_username" placeholder="username"  [(ngModel)]="username"&gt;
                          &lt;/div&gt;
                          &lt;div class="form-group"&gt;
                              &lt;label for="lg_password" class="sr-only"&gt;Password&lt;/label&gt;
                              &lt;input type="password" class="form-control" id="lg_password" name="lg_password" placeholder="password"  [(ngModel)]="password"&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                      &lt;button type="submit" class="login-button"&gt;&lt;i class="fa fa-chevron-right" &gt;&lt;/i&gt;LOGIN&lt;/button&gt;
       &lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>In component i have this:</p>
  
  <pre><code>  submitLogin(){
            // Variable to hold a reference of addComment/updateComment
  
        }
  </code></pre>
  
  <p>I have login component:</p>
  
  <pre><code>import {Component, EventEmitter, Input, OnChanges} from '@angular/core';
  import {Observable} from 'rxjs/Rx';
  import { LoginService } from '../services/login.service';
  import { Login } from '../model/login'
  @Component({
      selector: 'login',
      templateUrl: 'login-form',
  
  })
  export class LoginComponent {
    // Constructor with injected service
        constructor(
            private commentService: LoginService
            ){}
        // Local properties
        private model = new Login('', '');
  
        submitLogin(){
            // Variable to hold a reference of addComment/updateComment
              alert('aaaa');
        }
  
  
  }
  </code></pre>
  
  <p>Now what i want is to get value in <code>submitLogin()</code> from ngModel and then handle that values what ever i want. Any suggestion?</p>