How to retrieve checkbox value from firebase to Ionic 3 app


#1

Hello Im trying to display a single piece of data from my firebase database to my ionic 3 app. I’ve tried a few methods but I’m getting an error that says Cannot get name ‘i’.

Heres what I did so far:

I have a list of items that gets populated with data from a JSON file.
https://drive.google.com/open?id=1d3bpDqhtwoW2li468yqXUL90V8t63td8

I added a check box to each list item dynamically and successfully got to store TRUE or FALSE values and the index of that item to firebase based on the user that is signed in.
https://drive.google.com/open?id=1J9-GgURnoe7RhHZytxa4yG5OfbjzTML-

Now I’m trying to figure out how to pull the value of the check boxes from firebase to show it checked when ever the user goes to that page. If i refresh the app or go to another page and come back , the checkboxes that are suppose to be checked are not but the values are showing in the console.
https://drive.google.com/open?id=1hT9UCwNDcuDZXPw20M0ELjaHI-I5VnRR.

I added a function to be able to get the value and display it to checked but its not working as intended. because of the value of i, which is the index.

Can anyone help me figure this out please? I would really appreciate this. Here is my code:

hunts.html
https://drive.google.com/open?id=1G5KgV1gSUjjgkCoA4ASOYIOtSrfGqaEj

hunts.ts
https://drive.google.com/open?id=1ruYF4EUzp-PXLFcJR8WkEA669Fp6JTkh