Look at the sidemenu starter. There you have a menu built from a list: https://github.com/driftyco/ionic2-starter-sidemenu/blob/master/src/app/app.html You need to do exactly the same with the list you built out of your JSON.
1 Like
sujan my code is in below…please check out(app.component.ts)
getdata() {
this.loading.present();
return this.http.get('http://roshannews.net/services/menu.php').map(res => res.json()).subscribe(
data => {
//alert("result: " + data.result);
this.newsdata = data.result;
console.log("success: " + this.newsdata);
//Cannot read property 'children' of undefined
},
err => {
alert("Error: " + err);
//console.log("Error: " + err);
},
() => {
alert("getData completed");
this.loading.dismiss();
//console.log("getData completed");
}
);
}
[app.html:
{{p.category_name}} :worried: it's not display hereYou posted it before. It is not formatted properly and though not readable in any way.
i edit that please check out now, is it correct r not let me know sujan