# View doesn't return anything

**URL:** <https://forum.ionicframework.com/t/view-doesnt-return-anything/165158>\
**Category:** ionic-v3\
**Created:** [May 30, 2019, 10:07pm UTC](https://forum.ionicframework.com/t/view-doesnt-return-anything/165158 "2019-05-30T22:07:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dule84](https://avatars.discourse-cdn.com/v4/letter/d/e68b1a/32.png) [@Dule84](https://forum.ionicframework.com/u/Dule84)\
**Post date:** [May 30, 2019, 10:07pm UTC](https://forum.ionicframework.com/t/view-doesnt-return-anything/165158/1 "2019-05-30T22:07:00Z")

</div>

Well I have problem with my app. I work on some basic movie app and I can’t fetch data from API with id parameter. My code look like this.  
Home.ts

```auto
goToMovie(single: any) {
    let id = single;
    console.log(id);
    this.nav.push(SinglePage, {id: id});
  }

```

Single.ts

```auto
export class SinglePage {

  data: Movies = <Movies>{};
  id: any;

  constructor(public navCtrl: NavController, 
                     public navParams: NavParams, 
                     private movies: MoviesServiceProvider) {}

  ionViewDidLoad() {
    this.id = this.navParams.get("id");
    this.movies.getMovie(this.id)
        .then(res => { this.id = res[0]; });
    console.log(this.id);
  }
}

```

Single.html

```auto
<ion-header>
  <ion-navbar>
    <ion-title>single</ion-title>
  </ion-navbar>
</ion-header>

<ion-content padding *ngIf="data">
  <p>{{data?.title}}</p>
</ion-content>

```

Interface.ts

```auto
export interface Movies {
    id: number,
    title: string,
    description: string,
    link: string,
    image: string,
}

```

Service.ts

```auto
getMovie(id: number): Promise<Movies> {
        return this.http.get('http://localhost:8000/api/movie/' + id)
            .toPromise()
            .then(response => response.json().data as Movies);
    }

```

My problem is that nothing is rendered in view of single.html. In console I get expected results, values from id’s are correct. Also I don’t get any errors so if anybody knows what is problem I would be very grateful. I usually work in PHP and I didn’t work in Ionic for very long time.
