Skip to content
Permalink
Browse files

add todo component

  • Loading branch information
amejiarosario committed Nov 7, 2019
1 parent a8998b7 commit 27b354ec9fe438bb3a250350d4cb73e2a94fabc4
@@ -3,10 +3,12 @@ import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { TodoComponent } from './todo/todo.component';

@NgModule({
declarations: [
AppComponent
AppComponent,
TodoComponent
],
imports: [
BrowserModule,
@@ -0,0 +1 @@
<p>todo works!</p>
No changes.
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { TodoComponent } from './todo.component';

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

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

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

it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

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

constructor() { }

ngOnInit() {
}

}

0 comments on commit 27b354e

Please sign in to comment.
You can’t perform that action at this time.