From 3b28ac3e18d3a6600739e9cfa7615e4e17962194 Mon Sep 17 00:00:00 2001 From: Manuel Saelices Date: Tue, 2 Jul 2019 00:45:20 +0200 Subject: [PATCH] feat (frame): Allow developers to customize the default clearHistory and backstackVisible options when the page is mounted in a frame. --- platform/nativescript/runtime/components/frame.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/platform/nativescript/runtime/components/frame.js b/platform/nativescript/runtime/components/frame.js index 3f7ec078..cac01434 100644 --- a/platform/nativescript/runtime/components/frame.js +++ b/platform/nativescript/runtime/components/frame.js @@ -23,6 +23,16 @@ export default { required: false, default: null }, + clearHistory: { + type: Boolean, + required: false, + default: false + }, + backstackVisible: { + type: Boolean, + required: false, + default: true + }, // injected by the template compiler hasRouterView: { default: false @@ -89,6 +99,8 @@ export default { notifyPageMounted(pageVm) { let options = { + backstackVisible: this.backstackVisible, + clearHistory: this.clearHistory, create: () => pageVm.$el.nativeView }