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

Push json data into array

$
0
0

@Tubiss wrote:

public products:any=;

loadPeople(){
this.remoteService.load()
.then(data => {
console.log(data);
this.people = data;
this.people.sort((x,y) => new Date(x.start_time).getTime() - new Date(y.start_time).getTime());
this.products=this.people;

});

when ı write the this.products[2] its giving error “2” "is not defined. I just make push data in to products array

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49355

Latest Images

Trending Articles



Latest Images

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