From b50ce6b655b6f1747ee6d313955eef228584cf6d Mon Sep 17 00:00:00 2001 From: leandromonaco Date: Fri, 13 May 2022 08:26:55 +1000 Subject: [PATCH] [TeamHub.Web] Added new Angular component --- .../TeamHub.Web/src/app/app.component.html | 5 ++++ TeamHub/src/TeamHub.Web/src/app/app.module.ts | 4 ++- .../user-component.component.css | 0 .../user-component.component.html | 1 + .../user-component.component.spec.ts | 25 +++++++++++++++++++ .../user-component.component.ts | 15 +++++++++++ 6 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.css create mode 100644 TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.html create mode 100644 TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.spec.ts create mode 100644 TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.ts diff --git a/TeamHub/src/TeamHub.Web/src/app/app.component.html b/TeamHub/src/TeamHub.Web/src/app/app.component.html index f8a595c..b01659f 100644 --- a/TeamHub/src/TeamHub.Web/src/app/app.component.html +++ b/TeamHub/src/TeamHub.Web/src/app/app.component.html @@ -8,3 +8,8 @@

{{data.title}}

+ + + + + diff --git a/TeamHub/src/TeamHub.Web/src/app/app.module.ts b/TeamHub/src/TeamHub.Web/src/app/app.module.ts index 8bd30a5..f9c019e 100644 --- a/TeamHub/src/TeamHub.Web/src/app/app.module.ts +++ b/TeamHub/src/TeamHub.Web/src/app/app.module.ts @@ -4,10 +4,12 @@ import { HttpClientModule } from '@angular/common/http'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; +import { UserComponentComponent } from './user-component/user-component.component'; @NgModule({ declarations: [ - AppComponent + AppComponent, + UserComponentComponent ], imports: [ BrowserModule, diff --git a/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.css b/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.css new file mode 100644 index 0000000..e69de29 diff --git a/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.html b/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.html new file mode 100644 index 0000000..c076a87 --- /dev/null +++ b/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.html @@ -0,0 +1 @@ +

user-component works!

diff --git a/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.spec.ts b/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.spec.ts new file mode 100644 index 0000000..a540bb5 --- /dev/null +++ b/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { UserComponentComponent } from './user-component.component'; + +describe('UserComponentComponent', () => { + let component: UserComponentComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ UserComponentComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(UserComponentComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.ts b/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.ts new file mode 100644 index 0000000..2c91115 --- /dev/null +++ b/TeamHub/src/TeamHub.Web/src/app/user-component/user-component.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-user-component', + templateUrl: './user-component.component.html', + styleUrls: ['./user-component.component.css'] +}) +export class UserComponentComponent implements OnInit { + + constructor() { } + + ngOnInit(): void { + } + +}