Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Nathan-Nesbitt/03a5afb9bd5515e921c87b70355112b7 to your computer and use it in GitHub Desktop.
Save Nathan-Nesbitt/03a5afb9bd5515e921c87b70355112b7 to your computer and use it in GitHub Desktop.
Updates the routing between the two components we created Angular NativeScript
<Button [nsRouterLink]="['/home']" text="component-example works! {{ value }}" class="btn btn-primary"></Button>
<StackLayout class="p-20">
<Label text="Tap the button" class="h1 text-center"></Label>
<Button [nsRouterLink]="['/exampleComponent']" text="TAP" (tap)="onTap()" class="-primary"></Button>
<Label [text]="getMessage()" class="h2 text-center" textWrap="true"></Label>
</StackLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment