import { Component , OnInit } from "@angular/core" ; import { RouterExtensions } from "@nativescript/angular" ; import { ActivatedRoute } from "@angular/router" ; import { ModalDialogParams } from "@nativescript/angular" ; import { Page } from "@nativescript/core" ; @ Component ( { moduleId : module . id , templateUrl : "./home-modal-view-content.component.html" , styleUrls : [ "./home-modal-view-content.component.css" ] } ) export class HomeModalViewContentComponent implements OnInit { constructor ( private _params , private _page , private router , private _activeRoute ) { } ngOnInit ( ) { } onNavigate ( ) { this . router . navigate ( [ "../second-modal" ] , { relativeTo : this . _activeRoute } ) ; } onClose ( ) { this . _params . closeCallback ( "return value" ) ; } }