title: Setting ngModel default value angular 2
body: <p>Have a problem with ngModel in angular 2. Have a task to output a couple of inputs from an array in component class.
  Discovered a possibility to make ngModel take its value from [name] attribute without embracing ngModel in [()]. And I wonder if there is a way to provide a default value to these inputs.</p>
  
  <p>personal-details.component.ts :</p>
  
  <pre><code>import {
      Component,
  } from '@angular/core';
  
  import { Input }from './Input'
  
  @Component({
       selector: 'personal-details',
       styleUrls: ['personal-details.component.sass'],
       templateUrl: 'personal-details.component.html'
  })
  export class PersonalDetailsComponent {
       title: string;
       inputs: Input[] = [
           new Input('Name', 'text', 'Name', true, true),
           new Input('Surname', 'text', 'Surname', true, true),
           new Input('Mobile phone Number', 'text', 'phone', true, true),
           new Input('Date of Birth', 'text', 'birthday', false, true),
           new Input('Title', 'text', 'title', false, false),
           new Input('Title after name', 'text', 'title-after-name', false,     false),
           new Input('Personal number', 'text', 'personal-number', false, false),
           new Input('National ID/Passport number', 'text', 'personal-id', false, true),
      ];
      save = function (form) {
          console.log(form);
      }
      constructor(){
          this.title = 'someName';
      }
  }
  </code></pre>
  
  <p>Here`s my template:</p>
  
  <pre><code>&lt;h4 class="profile__title"&gt;Personal Details&lt;/h4&gt;
  &lt;form #personalDetails="ngForm"   (ngSubmit)="save(personalDetails.value)"&gt;
      &lt;div layout="row" flex-wrap&gt;
           &lt;div class="profile__input-wrapper" *ngFor="let input of inputs" flex="33"&gt;
               &lt;md-input-container class="profile__input-container"&gt;
                  &lt;input md-input
                     [placeholder]="input.placeholder"
                     [type]="input.type"
                     [name]="input.name"
                     [disabled]="input.isDisabled"
                     [required]="input.isRequired"
                     ngModel&gt;
              &lt;/md-input-container&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;profile-footer &gt;&lt;/profile-footer&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Tried several other approaches to list them with ngFor, no success.</p>