Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49380

Loading json data in to an array

$
0
0

@Tubiss wrote:

this is json
[{“id”:2,“userid”:30, “start_time”:“2019-09-01 14:13:35”},{“id”:3,“userid”:340, “start_time”:“2019-08-01 14:13:35”}]

public items: any;

loadPeople(){
this.remoteService.load()
.then(data => {
console.log(data);
this.people = data;
});

ı can pull json and display in the page very well. But ı want store this.people in to items array depend on start_time which is the earliest. Hopefully ı was able to explain problem

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49380

Trending Articles



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