Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Multiple navigators doesn't work #80

Open
@butaminas

Description

My stack:

✔ Component nativescript has 7.2.0
✔ Component @nativescript/core has 7.3.0
✔ Component @nativescript/ios has 7.2.0
✔ Component @nativescript/android has 7.0.1

First of all, I think the docs on how to use Multiple navigators are misleading.

Vue doesn't support multiple root elements and since we are using Nativescript-vue rather than Vue, there should be more info on how to properly use this.

my app.js looks like this:

import Root from './components/experimental/Root'
new Vue({
 render: h => h(Root),
 store
}).$start();

In the Root.vue I've tried wrapping navigators in Page Frame and many more tags but nothing seems to make both Navigators work.
I use 2 navigators like this:

<Navigator defaultRoute="/test1"/>
<Navigator id="second" defaultRoute="/test2"/>

But it would only show content from 1 Navigator.

Also, this.$navigator.paths always shows an empty object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /