Skip to content
This repository has been archived by the owner on Jul 10, 2018. It is now read-only.

Commit

Permalink
Merge 97c0783 into 7ad449b
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed May 25, 2018
2 parents 7ad449b + 97c0783 commit 8c44ebf
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/app/_components/nav/nav.component.html
@@ -0,0 +1,3 @@
<mat-toolbar color="primary">
<span>Ingredient Parser - Developer Demo</span>
</mat-toolbar>
Empty file.
27 changes: 27 additions & 0 deletions src/app/_components/nav/nav.component.spec.ts
@@ -0,0 +1,27 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';

import { NavComponent } from './nav.component';

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

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [NavComponent],
schemas: [NO_ERRORS_SCHEMA],
})
.compileComponents();
}));

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

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/_components/nav/nav.component.ts
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

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

constructor() { }

ngOnInit() {
}

}
2 changes: 2 additions & 0 deletions src/app/app.module.ts
Expand Up @@ -21,12 +21,14 @@ import { ParserService } from './_services/parser.service';
// Public pages
import { HomePageComponent } from './public/home-page/home-page.component';
import { MailingListComponent } from './_components/mailing-list/mailing-list.component';
import { NavComponent } from './_components/nav/nav.component';

@NgModule({
declarations: [
AppComponent,
HomePageComponent,
MailingListComponent,
NavComponent,
],
imports: [
BrowserAnimationsModule,
Expand Down
4 changes: 1 addition & 3 deletions src/app/public/home-page/home-page.component.html
@@ -1,6 +1,4 @@
<mat-toolbar color="primary">
<span>Ingredient Parser - Developer Demo</span>
</mat-toolbar>
<app-nav></app-nav>
<form>
<mat-form-field class="input-full-width" floatPlaceholder="never" hideRequiredMarker>
<input matInput placeholder="1 1/2 cups finely chopped red onions" name="ingredientRaw" [(ngModel)]="ingredientRaw" required>
Expand Down

0 comments on commit 8c44ebf

Please sign in to comment.