Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70862

Http Get Array From Server

$
0
0

@phil_co wrote:

Hello I want to be able to filter the "name" of my array for autocomplete. However I can only get "records".

this.http.get('http://www.example.com/file.php')
        .subscribe(data => {
this.items=JSON.parse(data.text()).records;
        });

My array:

{ "records":[ {"id":"1","name":"Bart"},{"id":"2","name":"Lisa"} ]}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70862

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>