{"id":19632802,"url":"https://github.com/shubhamd99/todolist-myfirst-angular","last_synced_at":"2026-05-16T03:05:32.379Z","repository":{"id":39496802,"uuid":"194132237","full_name":"shubhamd99/todolist-myfirst-angular","owner":"shubhamd99","description":"My First Angular Project TodoList","archived":false,"fork":false,"pushed_at":"2023-01-07T06:46:57.000Z","size":2585,"stargazers_count":0,"open_issues_count":27,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T15:19:10.576Z","etag":null,"topics":["angular","angular7","app","todolist","website"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shubhamd99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-27T16:51:26.000Z","updated_at":"2019-06-28T02:42:54.000Z","dependencies_parsed_at":"2023-02-06T14:15:54.767Z","dependency_job_id":null,"html_url":"https://github.com/shubhamd99/todolist-myfirst-angular","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Ftodolist-myfirst-angular","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Ftodolist-myfirst-angular/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Ftodolist-myfirst-angular/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shubhamd99%2Ftodolist-myfirst-angular/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shubhamd99","download_url":"https://codeload.github.com/shubhamd99/todolist-myfirst-angular/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240934436,"owners_count":19880992,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","angular7","app","todolist","website"],"created_at":"2024-11-11T12:15:27.915Z","updated_at":"2026-05-16T03:05:27.342Z","avatar_url":"https://github.com/shubhamd99.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Angular Todo-List\n\n## Commands\n1. ng serve\n2. ng generate component components/todos (Create Component)\n3. ng g s services/Todo (Create Services)\n4. ng build\n\n![alt_img](https://i.imgur.com/AKtYhjy.png)\n\n## Todo Service\n\n```\nimport { Injectable } from '@angular/core';\nimport { Observable } from 'rxjs';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\n\nimport { Todo } from '../models/Todo';\n\nconst httpOptions = {\n  headers: new HttpHeaders({\n    'Content-Type': 'application/json'\n  })\n};\n\n@Injectable({\n  providedIn: 'root'\n})\nexport class TodoService {\n  todosUrl = 'https://jsonplaceholder.typicode.com/todos';\n  todosLimit = '?_limit=100';\n\n  constructor(private http: HttpClient) { }\n\n  // Get Todos\n  getTodos(): Observable\u003cTodo[]\u003e {\n    return this.http.get\u003cTodo[]\u003e(`${this.todosUrl}${this.todosLimit}`);\n  }\n\n  // Add Todo\n  addTodo(todo: Todo): Observable\u003cTodo\u003e {\n    return this.http.post\u003cTodo\u003e(this.todosUrl, todo, httpOptions);\n  }\n\n  // Toggle Completed\n  toggleCompleted(todo: Todo): Observable\u003cany\u003e {\n    const url = `${this.todosUrl}/${todo.id}`;\n    return this.http.put(url, todo, httpOptions);\n  }\n\n  // Delete Todo\n  deleteTodo(todo: Todo): Observable\u003cTodo\u003e {\n    const url = `${this.todosUrl}/${todo.id}`;\n    return this.http.delete\u003cTodo\u003e(url, httpOptions);\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamd99%2Ftodolist-myfirst-angular","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshubhamd99%2Ftodolist-myfirst-angular","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshubhamd99%2Ftodolist-myfirst-angular/lists"}