diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 8961495..39bd155 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -6,6 +6,7 @@ import { TodosIndexComponent } from './todos-index/todos-index.component'; import { TodosCreateComponent } from './todos-create/todos-create.component'; import { FormsModule } from '@angular/forms'; +import { TodoService } from './todo.service' @NgModule({ declarations: [ @@ -17,7 +18,7 @@ import { FormsModule } from '@angular/forms'; BrowserModule, FormsModule ], - providers: [], + providers: [TodoService], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/src/app/todo.services.ts b/src/app/todo.service.ts similarity index 100% rename from src/app/todo.services.ts rename to src/app/todo.service.ts diff --git a/src/app/todos-index/todos-index.component.html b/src/app/todos-index/todos-index.component.html index a32956d..403fad6 100644 --- a/src/app/todos-index/todos-index.component.html +++ b/src/app/todos-index/todos-index.component.html @@ -1 +1,4 @@