title: Angular 4 [object Object]
body: <p>Im trying to iterate over an array but the dom is displaying [ object Object] instead. In other threads some people recommended to use Stringify and then it display the info but I can't iterate over a string. Thanks for your help.</p>
  
  <p>Here is my code:</p>
  
  <p>html</p>
  
  <pre><code>&lt;div *ngFor="let price of prices"&gt;
      {{prices}}
      &lt;/div&gt;
  </code></pre>
  
  <p>service.ts</p>
  
  <pre><code>import { Injectable } from '@angular/core';
  import { Http, Headers, Response } from '@angular/http';
  import 'rxjs/add/operator/toPromise';
  import {Observable} from "rxjs";
  import 'rxjs/Rx';
  import 'rxjs/add/operator/catch';
  import { MarketViewModel } from '../comprarmonedas/datosmoneda'
  
  
  @Injectable()
  export class BittrexService {
  
    constructor(private http: Http, private marketModel : MarketViewModel) { }
  
    public getPrices() :Observable&lt;MarketViewModel&gt; {
      return this.http.get('https://bittrex.com/api/v1.1/public/getmarketsummary?market=btc-zec')
      .map((response: Response) =&gt; response.json());
    }
  
  }
  
  
  interface
  
  export class MarketViewModel {
    public success : boolean;
    public message : string;
    public result : MarketListObject[];
  }
  
  export class MarketListObject {
      public MarketName : string;
      public High : number;
      public Low : number;
      public Volume : number;
      public Last : number;
      public BaseVolume : number;
      public TimeStamp : number;
      public Bid : number;
      public Ask : number;
      public OpenBuyOrders : number;
      public OpenSellOrders : number;
      public PrevDay : number;
      public Created : number; 
  
  }
  </code></pre>
  
  <p>component.ts</p>
  
  <pre><code>import { Component, OnInit } from '@angular/core';
  import { Http, Response, Headers } from '@angular/http';
  import { BittrexService } from '../../bittrex/bittrex.service';
  import {Observable} from "rxjs";
  
  @Component({
    selector: 'app-comprarzec',
    templateUrl: './comprarzec.component.html',
    styleUrls: ['./comprarzec.component.scss']
  })
  export class ComprarzecComponent implements OnInit {
  
    private prices = [];
  
    constructor(private bittrexService: BittrexService) {
      this.bittrexService = bittrexService;
    }
  
  ngOnInit(){
    this.bittrexService.getPrices()
    .subscribe(
      data =&gt; this.prices = data.result
    );
  }
   }
  </code></pre>