Skip to content

Commit 9599c3b

Browse files
committed
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

+1
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

+1-1
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

+1-1
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)