title: How to get data from an TypeScript Object?
body: <p>Block of code in modal:</p>
  
  <pre><code>export class Profile {
      constructor(public id : number,public name : string, public age: number,public address:any)
  }
  </code></pre>
  
  <p>Block of code in TypeScript file:</p>
  
  <pre><code>profile : Profile[]= [new Profile(1,'hello',4,'address'),new Profile(1,'hello',4,'address'),
      new Profile(1,'hello',4,'address'),new Profile(1,'hello',4,'address')
    ];
  </code></pre>
  
  <p>How to get name id age as a list and navigate through JSON  object array, because following block of code is not displaying anything as it is an array of objects in JSON:</p>
  
  <pre><code>&lt;div *ngFor="let p of profile"&gt;
      &lt;ion-button&gt;{{p.id}}&lt;/ion-button&gt;
  &lt;/div&gt;
  </code></pre>