src/pages/tabs/home/home.ts
@@ -1,5 +1,6 @@ import { Component } from '@angular/core'; import { IonicPage, NavController, NavParams } from 'ionic-angular'; declare function eval(s: string): any; @IonicPage({ name: 'home' @@ -13,6 +14,11 @@ constructor(public navCtrl: NavController, public navParams: NavParams) { } test() { let fun = "() => console.log('test');"; eval(fun); } ionViewDidLoad() { console.log('ionViewDidLoad HomePage'); } @@ -20,4 +26,9 @@ go() { this.navCtrl.push('access-login'); } gotoInput() { this.navCtrl.push('access-input'); } }