Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Variable to find items in array

$
0
0

I am assigning a variable (ex. var
choice="book1") and then using it to find items in an array called
listofbooks....so in my html I have {{listofbooks.choice[0].title}} or
{{listofbooks.choice[0].price}} but it is not coming up with
anything....

BTW {{listofbooks.book1[0].title}} works


Viewing all articles
Browse latest Browse all 228595

Trending Articles