Skip to content

Commit d06a7bd

Browse files
msaelicesrigor789
authored andcommitted
feat(frame): allow setting clearHistory and backstackVisible options for default pages. (#514)
1 parent be95893 commit d06a7bd

File tree

1 file changed

+12
-0
lines changed
  • platform/nativescript/runtime/components

1 file changed

+12
-0
lines changed

Diff for: platform/nativescript/runtime/components/frame.js

+12
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ export default {
2222
required: false,
2323
default: null
2424
},
25+
clearHistory: {
26+
type: Boolean,
27+
required: false,
28+
default: false
29+
},
30+
backstackVisible: {
31+
type: Boolean,
32+
required: false,
33+
default: true
34+
},
2535
// injected by the template compiler
2636
hasRouterView: {
2737
default: false
@@ -88,6 +98,8 @@ export default {
8898

8999
notifyPageMounted(pageVm) {
90100
let options = {
101+
backstackVisible: this.backstackVisible,
102+
clearHistory: this.clearHistory,
91103
create: () => pageVm.$el.nativeView
92104
}
93105

0 commit comments

Comments
 (0)