Skip to content

Commit 7acf562

Browse files
committed
fix: update task.service.ts references to task-service.ts in documentation
- Changed all occurrences of `task.service.ts` to `task-service.ts` across various documentation files for consistency and accuracy. - Ensured that the updated references are reflected in both code examples and instructional text.
1 parent 5693415 commit 7acf562

27 files changed

+42
-39
lines changed

src/content/docs/de/api-server/add-http-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The HttpClient is a built-in Angular service that allows you to send HTTP reques
4545
};
4646
```
4747

48-
2. Inject the HttpClient service in the `src/app/task.service.ts` file.
48+
2. Inject the HttpClient service in the `src/app/task-service.ts` file.
4949

5050
```typescript ins={"Import the HttpClient service": 2-3} ins="inject" ins={"Inject the HttpClient service": 9-11}
5151
import { Injectable, inject } from "@angular/core";

src/content/docs/de/api-server/create-task.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This new **addTask** function defines the exchange with the API server:
4747

4848
<Steps>
4949

50-
1. Update the `src/app/task.service.ts` file.
50+
1. Update the `src/app/task-service.ts` file.
5151

5252
```typescript ins={"Replace the addTask function": 10-16}
5353
import { Injectable, inject } from "@angular/core";

src/content/docs/de/api-server/delete-task.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ deleteTask(id: string) {
3232

3333
<Steps>
3434

35-
1. Update the **task.service.ts** file.
35+
1. Update the **task-service.ts** file.
3636

3737
```typescript ins={"Add the deleteTask function": 10-16}
3838
import { Injectable, inject } from "@angular/core";
@@ -65,7 +65,7 @@ This would result in the following code:
6565

6666
```typescript ins={"Modify the deleteTask function": 13-18}
6767
import { Component } from "@angular/core";
68-
import { TaskService } from "../task.service";
68+
import { TaskService } from "../task-service";
6969

7070
@Component({
7171
selector: "app-task-list",

src/content/docs/de/api-server/retrieve-tasks.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ This new **getTasks** method defines the communication with the API server:
5151

5252
<Steps>
5353

54-
1. Update the file `src/app/task.service.ts`.
54+
1. Update the file `src/app/task-service.ts`.
5555

5656
```typescript ins={"Add the getTasks function": 24-27}
5757
import { Injectable, signal, WritableSignal } from "@angular/core";
@@ -111,7 +111,7 @@ To differentiate an observable value, the Angular community commonly uses the `$
111111

112112
```typescript del={"Remove the tasks variable": 11-12} ins={"Replace it with the tasks$ variable": 13-14}
113113
import { Component } from "@angular/core";
114-
import { TaskService } from "../task.service";
114+
import { TaskService } from "../task-service";
115115
import { Task } from "../task.model";
116116

117117
@Component({
@@ -188,7 +188,7 @@ This subscription will be used in the **ngOnInit** function of the **TaskListCom
188188

189189
```typescript ins={"Subscribe to the observable": 14-17}
190190
import { Component, OnInit } from "@angular/core";
191-
import { TaskService } from "../task.service";
191+
import { TaskService } from "../task-service";
192192
import { Task } from "../task.model";
193193

194194
@Component({

src/content/docs/de/api-server/update-task.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ updateTask(task: Partial<Task>, id: string) {
4545

4646
<Steps>
4747

48-
1. Update the **task.service.ts** file.
48+
1. Update the **task-service.ts** file.
4949

5050
```typescript ins={"Replace the getTask function": 10-13} ins={"Replace the updateTask function": 14-17}
5151
import { Injectable, inject } from "@angular/core";

src/content/docs/de/create-task/angular-service.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The `ng generate` command that you used for components can also be used to gener
7575
2. Open the `task-service.ts` file and add a Signal property to store the task list, and add following imports:
7676

7777
```typescript ins="uuid()" ins="WritableSignal" ins="signal" ins={"Import the task interface and the Signals related imports": 3-4} ins={"import uuid (id generator)": 6-7} ins={"Add the tasks variable": 14-28}
78-
// task.service.ts
78+
// task-service.ts
7979
import { Injectable, WritableSignal, signal } from "@angular/core";
8080

8181
import { Task } from "./models/task.model";

src/content/docs/de/create-task/dependency-injection.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ tasks = this.taskService.tasks;
100100
// task-list.ts
101101
import { Component } from "@angular/core";
102102

103-
import { TaskService } from "../task.service";
103+
import { TaskService } from "../task-service";
104104

105105
@Component({
106106
selector: "app-task-list",

src/content/docs/de/delete-task/add-delete-function.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This function will remove the task from the list based on its **id**.
2424

2525
<Steps>
2626

27-
1. Update the file `src/app/task.service.ts`.
27+
1. Update the file `src/app/task-service.ts`.
2828

2929
```typescript ins={"Adding the deleteTask function": 21-26}
3030
import { Injectable, inject } from "@angular/core";

src/content/docs/de/reusable-components/delete-all-tasks.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import NotificationCard from "../../../../components/ui/NotificationCard";
1717
1. Update the `TaskService` class with a new function setting the tasks to an empty array:
1818

1919
```typescript ins={"Add the deleteAllTasks function to the service": 3-6}
20-
// task.service.ts
20+
// task-service.ts
2121

2222

2323
deleteAllTasks() {

src/content/docs/en/api-server/add-http-client.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The HttpClient is a built-in Angular service that allows you to send HTTP reques
4545
};
4646
```
4747

48-
2. Inject the HttpClient service in the `src/app/task.service.ts` file.
48+
2. Inject the HttpClient service in the `src/app/task-service.ts` file.
4949

5050
```typescript ins={"Import the HttpClient service": 2-3} ins="inject" ins={"Inject the HttpClient service": 9-11}
5151
import { Injectable, inject } from "@angular/core";

0 commit comments

Comments
 (0)