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

Passing array from page to modal

$
0
0

@JunnyBug wrote:

Hi. Anyone here knows how to pass an array in modal? I watched a lot of tutorials online showing to pass only 1 data at the time to modal. My array is managed to be sent to the modal. However, I am unable to access the array of objects.

myModal = that.modal.create('ModalPage', { title:'ATM' , passingdata: myData });

this.title = this.navParams.get('title');
    this.data = this.navParams.get('passingdata');
      console.log(this.data);

The console log has shown me the following results:

Why is the results hidden within the [ ]? And I cant seem to access the results[0]

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49246

Trending Articles



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