error to use information from an array obtained from a JSON

0

I appreciate you can help me with this error; I already bring the array as seen in console, but when I try to link to a <li> I only get it

  

Response with status: 200 OK for URL:    http://192.168.0.20/tracker/CodeIgniter-Rutas//index.php/ruta

I am currently trying to make the call to the data like this:

<ul *ngFor="let serial of infoGPS; let i = index">
    <li>{‌{i}} {‌{ serial.serial }}</li>
</ul>

and I've also tried it directly:

 <h3><strong class="text-primary">{‌{_PeticionesService.infoGPS.serial}} </strong></h3>

But I can not get it to show me the array data.

    
asked by gandhy 18.08.2017 в 00:51
source

1 answer

1

You still have to call the json method, Test

this._http.get('url').map((res) => res.json())
    
answered by 18.08.2017 в 12:51