Newer
Older
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {AppGlobal, AppService} from "../../../../service/appHttpService";
selector: 'page-learning-explain',
templateUrl: 'learning-explain.html',
}; //测试对象
constructor(public navCtrl: NavController, public navParams: NavParams,
const item = this.navParams.get('item');
this.title = item.title;
this.testId = item.testId;
const data = {
testId: this.testId
};
this.learnSer.startTest(data).subscribe(
(res) => {
this.item = res.data;
this.navCtrl.push("LearningDoPage", {
testId: this.testId,
title:this.title
});