import { Component } from '@angular/core' ; import { Platform , NavParams , ViewController } from 'ionic-angular' ; @ Component ( { selector : 'charts-modal' , templateUrl : 'charts-modal.html' } ) export class ChartsModalPage { chartData : any ; questionsText : any ; constructor ( public platform , public params , public viewCtrl ) { this . chartData = this . params . get ( 'chartData' ) ; this . questionsText = this . params . get ( 'questionsText' ) ; } dismiss ( ) { this . viewCtrl . dismiss ( ) ; } }