Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
<div>{{recipe.instructions}}</div>
</div> -->
<app-login></app-login>
<!-- <app-contact></app-contact> -->
<!-- <app-about></app-about> -->
4 changes: 3 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { LoginComponent } from './components/login/login.component';
import { HeaderComponent } from './components/header/header.component';
import { RouterModule, Routes } from '@angular/router';
import { AboutComponent } from './components/about/about.component';
import { ContactComponent } from './components/contact/contact.component';

const approutes: Routes = [
{path: '', component: AppComponent}
Expand All @@ -22,7 +23,8 @@ const approutes: Routes = [
RecipeComponent,
LoginComponent,
HeaderComponent,
AboutComponent
AboutComponent,
ContactComponent
],
imports: [
BrowserModule,
Expand Down
Empty file.
15 changes: 15 additions & 0 deletions src/app/components/contact/contact.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<div class="contactHeader">
Contact us
</div>
<div class="loginForm">
<form >
<label for="uname">Name</label><br>
<input type="text" name="username"><br><br>
<label for="password">Email</label><br>
<input type="password" name="password"><br><br>
<label for="comment">Comments</label><br>
<textarea rows="5" cols="50" id="multiLineInput"></textarea><br>
<input type="submit" value="Submit">
</form>
</div>

25 changes: 25 additions & 0 deletions src/app/components/contact/contact.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';

import { ContactComponent } from './contact.component';

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

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

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

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/components/contact/contact.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-contact',
templateUrl: './contact.component.html',
styleUrls: ['./contact.component.css']
})
export class ContactComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}