import { Component, OnInit } from '@angular/core'; import { NavParams } from '@ionic/angular'; import { EventDetailsDocumentsOptionsPage } from '../shared/popover/event-details-documents-options/event-details-documents-options.page'; import { AlertController, ModalController } from '@ionic/angular'; @Component({ selector: 'app-tiny-mce', templateUrl: './tiny-mce.page.html', styleUrls: ['./tiny-mce.page.scss'], }) export class TinyMCEPage implements OnInit { title = '
This is my HTML document.
'; Document: any content: any editorContent: string; constructor( private navParams: NavParams, private modalController: ModalController, ) { this.Document = this.navParams.get('Document') this.content = this.navParams.get('content') } ngOnInit() { } close() { throw new Error('Method not implemented.'); } somefunction() { console.log(this.title) } async openOptions() { const modal = await this.modalController.create({ component: EventDetailsDocumentsOptionsPage, cssClass: 'model aside-modal search-submodal', componentProps: { /* fulltask: this.task, task: this.task */ } }); await modal.present(); modal.onDidDismiss().then((res)=>{ }) } }