From b84e2b5de25dabc22c416623aa07d8ba3cc8d413 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 26 Jun 2017 15:35:26 -0400 Subject: [PATCH] created components --- src/app/app.component.html | 2 ++ src/app/app.module.ts | 6 ++++- .../todos-create/todos-create.component.css | 0 .../todos-create/todos-create.component.html | 3 +++ .../todos-create.component.spec.ts | 25 +++++++++++++++++++ .../todos-create/todos-create.component.ts | 15 +++++++++++ src/app/todos-index/todos-index.component.css | 0 .../todos-index/todos-index.component.html | 3 +++ .../todos-index/todos-index.component.spec.ts | 25 +++++++++++++++++++ src/app/todos-index/todos-index.component.ts | 15 +++++++++++ 10 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 src/app/todos-create/todos-create.component.css create mode 100644 src/app/todos-create/todos-create.component.html create mode 100644 src/app/todos-create/todos-create.component.spec.ts create mode 100644 src/app/todos-create/todos-create.component.ts create mode 100644 src/app/todos-index/todos-index.component.css create mode 100644 src/app/todos-index/todos-index.component.html create mode 100644 src/app/todos-index/todos-index.component.spec.ts create mode 100644 src/app/todos-index/todos-index.component.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index 5f1ecba..bf40b78 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1 +1,3 @@

To Do App

+ + diff --git a/src/app/app.module.ts b/src/app/app.module.ts index f657163..b85f52e 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -2,10 +2,14 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { AppComponent } from './app.component'; +import { TodosIndexComponent } from './todos-index/todos-index.component'; +import { TodosCreateComponent } from './todos-create/todos-create.component'; @NgModule({ declarations: [ - AppComponent + AppComponent, + TodosIndexComponent, + TodosCreateComponent ], imports: [ BrowserModule diff --git a/src/app/todos-create/todos-create.component.css b/src/app/todos-create/todos-create.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/todos-create/todos-create.component.html b/src/app/todos-create/todos-create.component.html new file mode 100644 index 0000000..8db23d1 --- /dev/null +++ b/src/app/todos-create/todos-create.component.html @@ -0,0 +1,3 @@ +

+ todos-create works! +

diff --git a/src/app/todos-create/todos-create.component.spec.ts b/src/app/todos-create/todos-create.component.spec.ts new file mode 100644 index 0000000..3f1c5ad --- /dev/null +++ b/src/app/todos-create/todos-create.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TodosCreateComponent } from './todos-create.component'; + +describe('TodosCreateComponent', () => { + let component: TodosCreateComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ TodosCreateComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(TodosCreateComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should be created', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/todos-create/todos-create.component.ts b/src/app/todos-create/todos-create.component.ts new file mode 100644 index 0000000..9c4210e --- /dev/null +++ b/src/app/todos-create/todos-create.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-todos-create', + templateUrl: './todos-create.component.html', + styleUrls: ['./todos-create.component.css'] +}) +export class TodosCreateComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/todos-index/todos-index.component.css b/src/app/todos-index/todos-index.component.css new file mode 100644 index 0000000..e69de29 diff --git a/src/app/todos-index/todos-index.component.html b/src/app/todos-index/todos-index.component.html new file mode 100644 index 0000000..5f822a8 --- /dev/null +++ b/src/app/todos-index/todos-index.component.html @@ -0,0 +1,3 @@ +

+ todos-index works! +

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