import { Component } from '@angular/core' ; import { NavController , NavParams } from 'ionic-angular' ; import { Http } from '@angular/http' ; import { ItemApi } from '../../services/service' ; @ Component ( { selector : 'page-single-item' , templateUrl : 'single-item.html' , providers : [ Http ] } ) export class SingleItem { item : any ; constructor ( public navCtrl , private navParams , private itemApi ) { this . item = this . navParams . data ; console . log ( this . item ) ; } }