Created
June 18, 2020 17:56
-
-
Save Nathan-Nesbitt/03a5afb9bd5515e921c87b70355112b7 to your computer and use it in GitHub Desktop.
Updates the routing between the two components we created Angular NativeScript
This file contains hidden or 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
<Button [nsRouterLink]="['/home']" text="component-example works! {{ value }}" class="btn btn-primary"></Button> |
This file contains hidden or 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
<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