Skip to content

Commit

Permalink
[TeamHub.Web] Added new Angular component
Browse files Browse the repository at this point in the history
  • Loading branch information
leandromonaco committed May 12, 2022
1 parent 515c18d commit b50ce6b
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 1 deletion.
5 changes: 5 additions & 0 deletions TeamHub/src/TeamHub.Web/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,8 @@ <h1>{{data.title}}</h1>
<input title="test2" class="demo" value="test" (click)="onInputClicked()" />
<input title="test2" class="demo" [value]="data.title" #titleInput (keyup)="onKeyUp(titleInput.value)"/>
<div [innerHTML]="data.title"></div>


<app-user-component></app-user-component>
<app-user-component></app-user-component>
<app-user-component></app-user-component>
4 changes: 3 additions & 1 deletion TeamHub/src/TeamHub.Web/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>user-component works!</p>
Original file line number Diff line number Diff line change
@@ -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<UserComponentComponent>;

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

beforeEach(() => {
fixture = TestBed.createComponent(UserComponentComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
Original file line number Diff line number Diff line change
@@ -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 {
}

}

0 comments on commit b50ce6b

Please sign in to comment.