import { Component , ViewContainerRef } from "@angular/core" ; import { ModalDialogOptions , ModalDialogService } from "@nativescript/angular" ; import { HomeModalViewComponent } from "./home-modal-view.component" ; @ Component ( { moduleId : module . id , providers : [ ModalDialogService ] , templateUrl : "./modal-view-navigation.component.html" } ) export class ModalViewNavigationComponent { constructor ( private _modalService , private _vcRef ) { } onTap ( ) { const options = { viewContainerRef : this . _vcRef , context : { } , fullscreen : true } ; this . _modalService . showModal ( HomeModalViewComponent , options ) . then ( ( result ) => { console . log ( result ) ; } ) ; } }