Newer
Older
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
constructor(public navCtrl: NavController, public navParams: NavParams,
public appService: AppService, public storage: Storage) {
}
ionViewDidLoad() {
this.item = this.navParams.get('item');
this.getInfo()
}
this.appService.ObserverHttpPost('/wisdomgroup/modules/question/showOnApp', data)
.subscribe((res) => {
this.contentList = res.json().data.ques.datalist;
for( let i = 0;i<this.contentList.length;i++ ){
this.contentList[i].quesDesc = JSON.parse(this.contentList[i].quesDesc);
}
goToResult() {
this.navCtrl.push('SurveyResultPage', {item: this.survey});