From f98d9cfd788d7956cc4ea8eb2c1786ce0343d69c Mon Sep 17 00:00:00 2001 From: Hector Romero Date: Tue, 6 Sep 2022 16:52:08 -0700 Subject: [PATCH] add home component --- apps/dashboard/src/app/app.module.ts | 2 ++ .../src/app/home/home.component.html | 1 + .../src/app/home/home.component.scss | 0 .../src/app/home/home.component.spec.ts | 22 +++++++++++++++++++ apps/dashboard/src/app/home/home.component.ts | 12 ++++++++++ 5 files changed, 37 insertions(+) create mode 100644 apps/dashboard/src/app/home/home.component.html create mode 100644 apps/dashboard/src/app/home/home.component.scss create mode 100644 apps/dashboard/src/app/home/home.component.spec.ts create mode 100644 apps/dashboard/src/app/home/home.component.ts diff --git a/apps/dashboard/src/app/app.module.ts b/apps/dashboard/src/app/app.module.ts index 8a93025..18ec0fa 100644 --- a/apps/dashboard/src/app/app.module.ts +++ b/apps/dashboard/src/app/app.module.ts @@ -10,6 +10,7 @@ import { RoutingModule } from './routing.module'; import { WidgetsComponent } from './widgets/widgets.component'; import { WidgetsListComponent } from './widgets/widgets-list/widgets-list.component'; import { WidgetDetailsComponent } from './widgets/widget-details/widget-details.component'; +import { HomeComponent } from './home/home.component'; @NgModule({ declarations: [ @@ -18,6 +19,7 @@ import { WidgetDetailsComponent } from './widgets/widget-details/widget-details. WidgetsComponent, WidgetsListComponent, WidgetDetailsComponent, + HomeComponent, ], imports: [ BrowserModule, diff --git a/apps/dashboard/src/app/home/home.component.html b/apps/dashboard/src/app/home/home.component.html new file mode 100644 index 0000000..5f2c53f --- /dev/null +++ b/apps/dashboard/src/app/home/home.component.html @@ -0,0 +1 @@ +

home works!

diff --git a/apps/dashboard/src/app/home/home.component.scss b/apps/dashboard/src/app/home/home.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/apps/dashboard/src/app/home/home.component.spec.ts b/apps/dashboard/src/app/home/home.component.spec.ts new file mode 100644 index 0000000..7d04862 --- /dev/null +++ b/apps/dashboard/src/app/home/home.component.spec.ts @@ -0,0 +1,22 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { HomeComponent } from './home.component'; + +describe('HomeComponent', () => { + let component: HomeComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [HomeComponent], + }).compileComponents(); + + fixture = TestBed.createComponent(HomeComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/apps/dashboard/src/app/home/home.component.ts b/apps/dashboard/src/app/home/home.component.ts new file mode 100644 index 0000000..2c3ea5b --- /dev/null +++ b/apps/dashboard/src/app/home/home.component.ts @@ -0,0 +1,12 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'hr-webdev-home', + templateUrl: './home.component.html', + styleUrls: ['./home.component.scss'], +}) +export class HomeComponent implements OnInit { + constructor() {} + + ngOnInit(): void {} +}