import { Component , OnInit } from '@angular/core' ; import { ModalController } from '@ionic/angular' ; @ Component ( { selector : 'app-now-playing' , templateUrl : './now-playing.page.html' , styleUrls : [ './now-playing.page.scss' ] , } ) export class NowPlayingPage implements OnInit { constructor ( public modalCtrl ) { } ngOnInit ( ) { } closeModal ( ) { this . modalCtrl . dismiss ( ) ; } }