Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Data object is not displayed in view

$
0
0

@ymphyow wrote:

I have an issue of displaying json object on ionic view . I have retrieved the data from API with http native. when I print out , it looks like this {“user_name”:“user123”, “full_name”: “yiemon”, “email”:"yiemon@gmail.com"}. I added it into object and try to display it on View.

here is my menu ts file.

async ionViewWillEnter() {
this.person = from(this.authService.getProfile().then((res) => {
this.authService.setProfile(res.data);
console.log(res.data);
return res.data;
}));

Here is my menu.html

<ion-col class=“menu_bottom” *ngFor=“let item of (person$ | async)”>

 {{item.user_name}}  

Thank you for your help.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>