From 08c893650aa1b4d8a2174ba42a90c4b9180a6872 Mon Sep 17 00:00:00 2001 From: Uday Vunnam Date: Sun, 3 Nov 2019 13:36:13 +0530 Subject: [PATCH] style(app): home page --- projects/xng-breadcrumb-app/src/app/app-routing.module.ts | 3 ++- projects/xng-breadcrumb-app/src/app/home/home.component.html | 2 +- projects/xng-breadcrumb-app/src/app/home/home.component.scss | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/projects/xng-breadcrumb-app/src/app/app-routing.module.ts b/projects/xng-breadcrumb-app/src/app/app-routing.module.ts index ab1cbb1..d170883 100644 --- a/projects/xng-breadcrumb-app/src/app/app-routing.module.ts +++ b/projects/xng-breadcrumb-app/src/app/app-routing.module.ts @@ -1,13 +1,14 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { PageNotFoundComponent } from './core/page-not-found.component'; +import { HomeComponent } from './home/home.component'; // when deafalt route has no path or breadcrumb diplay home export const appRoutes: Routes = [ { path: '', - redirectTo: 'dashboard', pathMatch: 'full', + component: HomeComponent, data: { breadcrumb: { label: '', diff --git a/projects/xng-breadcrumb-app/src/app/home/home.component.html b/projects/xng-breadcrumb-app/src/app/home/home.component.html index fbded72..0eb1c37 100644 --- a/projects/xng-breadcrumb-app/src/app/home/home.component.html +++ b/projects/xng-breadcrumb-app/src/app/home/home.component.html @@ -1,4 +1,4 @@ -
+

This is a demo app showcasing xng-breadcrumb library usage in Angular applications. Navigate through App to see the breadcrumb diff --git a/projects/xng-breadcrumb-app/src/app/home/home.component.scss b/projects/xng-breadcrumb-app/src/app/home/home.component.scss index 55b280f..8e14d93 100644 --- a/projects/xng-breadcrumb-app/src/app/home/home.component.scss +++ b/projects/xng-breadcrumb-app/src/app/home/home.component.scss @@ -23,3 +23,7 @@ blockquote p { mat-card { cursor: pointer; } + +.home-container { + margin: 16px 64px; +}