import { Component } from "@angular/core" ; import { RouterExtensions } from "@nativescript/angular" ; import { ModalDialogParams } from "@nativescript/angular" ; @ Component ( { moduleId : module . id , templateUrl : "./second-modal-view-content.component.html" , styleUrls : [ "./second-modal-view-content.component.css" ] } ) export class SecondModalViewContentComponent { constructor ( private _params , private router ) { } onBack ( ) { this . router . back ( ) ; } onClose ( ) { this . _params . closeCallback ( "return value" ) ; } }