You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that we used `clearHistory: true` to prevent the back button from going back to the login page.
97
107
98
108
`$navigator.back(options, backstackEntry)` is an alias to [`$navigateBack`](https://nativescript-vue.org/en/docs/routing/manual-routing/#navigatebackoptions-backstackentry--null)
109
+
110
+
# Multiple Navigators
111
+
112
+
It is possible to use multiple `<Navigator>` elements by providing each new Navigator with a unique `id`.
113
+
114
+
```vue
115
+
<template>
116
+
<!-- this is the default navigator and can omit the id -->
117
+
<Navigator />
118
+
<!-- shows the current path of the default navigator -->
119
+
<Label :text="$navigator.path" />
120
+
121
+
<!-- this is the second navigator and it MUST have a unique id -->
122
+
<Navigator id="second" />
123
+
<!-- shows the current path of the second navigator -->
124
+
<Label :text="$navigator.paths.second" />
125
+
</template>
126
+
127
+
<script>
128
+
export default {
129
+
methods: {
130
+
someMethod() {
131
+
// navigate the default Navigator
132
+
this.$navigator.navigate('/new-path')
133
+
// navigate the second default Navigator by specifying the frame option
0 commit comments