Permalink
Browse files

ng generate component todo

1 parent 7c0c25a commit 6fb0d24649dcb34541faa36241940f6781216555 @amejiarosario committed Oct 17, 2016
@@ -4,10 +4,12 @@ import { FormsModule } from '@angular/forms';
import { HttpModule } from '@angular/http';
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,11 @@
+/* tslint:disable:no-unused-variable */
+
+import { TestBed, async } from '@angular/core/testing';
+import { TodoComponent } from './todo.component';
+
+describe('Component: Todo', () => {
+ it('should create an instance', () => {
+ let component = new TodoComponent();
+ 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 6fb0d24

Please sign in to comment.