Permalink
Browse files

ng generate component todo

  • Loading branch information...
amejiarosario committed Aug 7, 2018
1 parent ec0b9f9 commit bd5ec414bd2a9012def659b02b714917995feb79
@@ -2,10 +2,12 @@ import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

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

@NgModule({
declarations: [
AppComponent
AppComponent,
TodoComponent
],
imports: [
BrowserModule
@@ -0,0 +1,3 @@
<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 bd5ec41

Please sign in to comment.