Last active
March 15, 2020 08:08
-
-
Save darylteo/6c23d7a930eb60d09a8c18122799ef21 to your computer and use it in GitHub Desktop.
Nested Navigation with nativescript-vue-navigator?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template lang="html"> | |
<Navigator defaultRoute="/login"/> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script lang="ts"> | |
private async onLoginTap() { | |
this.$navigator.navigate('/main', { | |
clearHistory: true, | |
}); | |
} | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<Page> | |
<BottomNavigation> | |
<TabStrip> | |
<TabStripItem class="navigation__item"> | |
<Label text="News"></Label> | |
<Image src.decode="font://" class="fas t-36"></Image> | |
</TabStripItem> | |
<TabStripItem class="navigation__item"> | |
<Label text="Developers"></Label> | |
<Image src.decode="font://" class="fas t-36"></Image> | |
</TabStripItem> | |
</TabStrip> | |
<TabContentItem> | |
<Frame id="frame-1"> | |
<Navigator defaultRoute="/feed"/> | |
</Frame> | |
</TabContentItem> | |
<TabContentItem> | |
<Frame id="frame-3"> | |
<Diagnostics/> | |
</Frame> | |
</TabContentItem> | |
</BottomNavigation> | |
</Page> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment