I am developing one prototype application in ionic framework. I am newbie for angular js, HTML, CSS , Java Script and all this stuff.
I have one json file which I am using as a input. I am able to parse this Json file and able to get json object from this. This json object contains array of items. You can refer below json content for this. Here items are application A,B…etc
input json
{"data": [
{
"applicationname": "A",
"permissions": [
{
"text": "A_T",
"details": "A_D"
},
{
"text": "A_t1",
"details": "A_d1"
}
]
},
{
"applicationname": "B",
"permissions": [
{
"text": "B_T",
"details": "B_D"
},
{
"text": "B_t1",
"details": "B_d1"
}
]
}
]
}
First time when application start at that time I want to load only first item data from above json array that means only “A” (first item) data.
Once user click on any buttons (install/cancel) from Footer then it should changed its data and display application “B”'s contents. This process should continue till end json array.
My current code is working fine for only one item (A’s application only).
Code :
http://codepen.io/skpatel/pen/eNMjJR
Sample data image : When I click on Install/Click then second item from “data” json array should be loaded. In same layout 2nd item data should be loaded. (Application B’s data)
Please help me, thanks in advance.