get data from local JSON file in ionic5

fetch('./assets/data/datajson.json').then(res => res.json())
    .then(json => {
      this.data = json;
    })

Comments

Popular posts from this blog

push multiple data in array(select and disselect items in array)

how to active side menu in ionic3

how to add accordian to ionic project