samarthagarwal
9/3/2018 - 1:56 PM

IF_05_08_Modal_Office_TS

import { Component, OnInit } from '@angular/core';
import { NavController, ModalController } from '@ionic/angular';
import { NavigationService } from '../navigation.service';

@Component({
  selector: 'app-office',
  templateUrl: './office.page.html',
  styleUrls: ['./office.page.scss'],
})
export class OfficePage implements OnInit {

  name: string;

  constructor(private navCtrl: NavController, private navigationService: NavigationService, private modalCtrl: ModalController) { 

    this.name = this.navigationService.getData().name;

  }

  goBack(){
    //this.navCtrl.goBack('/home');
    this.modalCtrl.dismiss();
  }

  ngOnInit() {
  }

}