Skip to content

Instantly share code, notes, and snippets.

@darylteo
Last active March 15, 2020 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darylteo/6c23d7a930eb60d09a8c18122799ef21 to your computer and use it in GitHub Desktop.
Save darylteo/6c23d7a930eb60d09a8c18122799ef21 to your computer and use it in GitHub Desktop.
Nested Navigation with nativescript-vue-navigator?
<template lang="html">
<Navigator defaultRoute="/login"/>
</template>
<script lang="ts">
private async onLoginTap() {
this.$navigator.navigate('/main', {
clearHistory: true,
});
}
</script>
<template>
<Page>
<BottomNavigation>
<TabStrip>
<TabStripItem class="navigation__item">
<Label text="News"></Label>
<Image src.decode="font://&#xf015;" class="fas t-36"></Image>
</TabStripItem>
<TabStripItem class="navigation__item">
<Label text="Developers"></Label>
<Image src.decode="font://&#xf015;" 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