NetanelBasal
2/22/2017 - 10:01 AM

todos.service.ts

@Injectable()
export class TodosService {

  getTodos() {
    const todos = [{id: 1, title: "Learn ngrx/store", completed: false}, {id: 2, title: "Learn ngrx/effects", completed: false}]
    return Observable.timer(1000).mapTo(todos)
  }

}