**post.html**
<ion-content padding>
<ion-card>
<ion-card-content>
*//Something to do here*
</ion-card-content>
</ion-card>
</ion-content>
**post.ts**
export class PostPage {
items:any;
displayName: string;
firedata = firebase.database().ref('/chatusers');
constructor(public navCtrl: NavController, public navParams: NavParams, public storage:Storage,
public userservice: UserProvider, public afireauth: AngularFireAuth) {
this.userservice.getAllPosts().on('value', (snapshot) => {
let posts = snapshot.val();
let keys = Object.keys(posts);
for (let i = 0; i < keys.length; i++) {
let k = keys[i];
let postArray = posts[k].post;
let displayName = posts[k].displayName;
for (let j = 0; j < postArray.length; j++) {
let itemList = postArray[j];
console.log(displayName + " : " + itemList);
}
}
});
}
**console.log output**
TANMAY : PDP
TANMAY : ALGO TA
TANMAY : smoking kills
SIDDHANT : Bad Grades
SIDDHANT : boytown
SIDDHANT : smoothy
I want this exact output which is displayed in console.log to be displayed in my HTML, For some reason I am unable to do, please help me, I have got everything ready, just need a way to get it rendered in my HTML. New to Ionic3.
html?