I\'m trying to display some info in the dom but I get this error:
Error: Error trying to diff \'[object Object]\'
What Im trying to
public getPricess() :Observable { return this.http.get('https://www.surbtc.com/api/v2/markets/btc-clp/ticker') .map((response: Response) => response.json() as SurbtcMarket); }
This might be due to the fact as it's not mapped to a type. And I assume this only retun one object otherwise you have to return an array.
public getPricess() :Observable { return this.http.get('https://www.surbtc.com/api/v2/markets/btc-clp/ticker') .map((response: Response) => response.json() as SurbtcMarket[]); }