title: Create object in form angular 2 ionic 2
body: <p>here's the ts file</p>
  
  <pre><code>import { Component } from '@angular/core';
  import { NavController, Platform } from 'ionic-angular';
  import { SalePage } from "../sale/sale";
  import {Md5} from 'ts-md5/dist/md5';
  import { DatabaseProvider } from "../../providers/database/database";
  
  @Component(
  {
      selector: 'page-login',
      templateUrl: 'login.html'
  })
  export class LoginPage
  {
      sellerData = {Ownership: {Single: "", Double: ""}, Name: {First_Name: "", Last_Name: ""}};
      constructor(
      private platform: Platform,
      private navCtrl: NavController,
      private db: DatabaseProvider)
      {
          this.navCtrl.setRoot(SalePage);
      }
      closeApp()
      {
          this.platform.exitApp();
      }
  }
  </code></pre>
  
  <p>I want to create a multi dimensional object in ionic form.</p>
  
  <p>Something like that:
  <code>sellerData = {Ownership: {Single: "", Double: ""}, Name: {First_Name: "", Last_Name: ""}};</code></p>
  
  <p>How can I create it in form. and use it like this: <code>[(ngModel)] = "sellerData.Ownership.Single"</code></p>
  
  <p>Help me, thanks.</p>
  
  <pre><code>&lt;form #sellerData = 'ngForm'&gt;
      &lt;ion-list&gt;
          &lt;ion-item&gt;
              &lt;label&gt;Ownership&lt;/label&gt;
              &lt;select&gt;
                  &lt;option value = ""&gt;Select Ownership&lt;/option&gt;
                  &lt;option value = '1' [(ngModel)] = "sellerData.Ownership.Single" name = "Single" placeholder = "Single"&gt;Single&lt;/option&gt;
                  &lt;option value = '2' [(ngModel)] = "sellerData.Ownership.Double" name = "Double" placeholder = "Double"&gt;Double&lt;/option&gt;
              &lt;/select&gt;
          &lt;/ion-item&gt;
          &lt;ion-item&gt;
              &lt;ion-input [(ngModel)] = "sellerData.Name.First_Name" name = "First_Name" placeholder = "First name"&gt;&lt;/ion-input&gt;
              &lt;ion-input [(ngModel)] = "sellerData.Name.Last_Name" name = "Last_Name" placeholder = "Last name"&gt;&lt;/ion-input&gt;
          &lt;/ion-item&gt;
          &lt;ion-item&gt;
          &lt;/ion-item&gt;
      &lt;/ion-list&gt;
  &lt;/form&gt;
  </code></pre>