Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9599c3b

Browse files
adding home route
1 parent 27b76e3 commit 9599c3b

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

‎src/AspnetRun.Web/src/app/app-routing.module.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Routes, RouterModule, PreloadAllModules } from '@angular/router';
33

44
export const routes: Routes = [
55
{ path: '', redirectTo: 'product', pathMatch: 'full', },
6+
{ path: 'index', redirectTo: 'product', pathMatch: 'full', },
67
{ path: 'product', loadChildren: () => import('./views/product/product.module').then(m => m.ProductModule) },
78
{ path: 'category', loadChildren: () => import('./views/category/category.module').then(m => m.CategoryModule) }
89
];

‎src/AspnetRun.Web/src/app/core/layout/layout.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse">
99
<ul class="navbar-nav flex-grow-1">
1010
<li class="nav-item" routerLinkActive="active">
11-
<a class="nav-link text-dark" routerLink="/Index">Home</a>
11+
<a class="nav-link text-dark" routerLink="/index">Home</a>
1212
</li>
1313
<li class="nav-item" routerLinkActive="active">
1414
<a class="nav-link text-dark" routerLink="/product/product-list">Products</a>

‎src/AspnetRun.Web/src/app/core/layout/layout.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component, OnInit } from '@angular/core';
33
@Component({
44
selector: 'app-layout',
55
templateUrl: './layout.component.html',
6-
styleUrls: ['./layout.component.scss']
6+
styleUrls: ['./layout.component.css']
77
})
88
export class LayoutComponent implements OnInit {
99

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /