Last active
June 18, 2020 17:41
-
-
Save Nathan-Nesbitt/31aae8ec487e8dd29a2e9ed7d83fc2f7 to your computer and use it in GitHub Desktop.
Changes to routing in Angular NativeScript Application to Redirect to Proper Page
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
| import { HomeComponent } from './home/home.component'; | |
| const routes: Routes = [ | |
| { path: '', redirectTo: '/home', pathMatch: 'full' }, | |
| { path: 'home', component: HomeComponent }, | |
| ]; |
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
| import { HomeComponent } from './home/home.component'; | |
| import { ComponentExampleComponent } from './component-example/component-example.component'; | |
| const routes: Routes = [ | |
| { path: '', redirectTo: '/exampleComponent', pathMatch: 'full' }, | |
| { path: 'home', component: HomeComponent }, | |
| { path: 'exampleComponent', component: ComponentExampleComponent }, | |
| ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment