Skip to content

Commit

Permalink
add home component
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorromerodev committed Sep 6, 2022
1 parent 30203cb commit f98d9cf
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/dashboard/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand All @@ -18,6 +19,7 @@ import { WidgetDetailsComponent } from './widgets/widget-details/widget-details.
WidgetsComponent,
WidgetsListComponent,
WidgetDetailsComponent,
HomeComponent,
],
imports: [
BrowserModule,
Expand Down
1 change: 1 addition & 0 deletions apps/dashboard/src/app/home/home.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>home works!</p>
Empty file.
22 changes: 22 additions & 0 deletions apps/dashboard/src/app/home/home.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { HomeComponent } from './home.component';

describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;

beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [HomeComponent],
}).compileComponents();

fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
12 changes: 12 additions & 0 deletions apps/dashboard/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -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 {}
}

0 comments on commit f98d9cf

Please sign in to comment.