Skip to content

Commit 926a453

Browse files
committed
March training fixes
1 parent ff6eb8a commit 926a453

8 files changed

Lines changed: 12 additions & 12 deletions

File tree

docs/src/en/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ import { Component, input } from "@angular/core"
404404
templateUrl: "./blog-post.component.html"
405405
})
406406
export class BlogPostComponent {
407-
protected readonly title = input.required<string>()
408-
protected readonly content = input('No content available')
407+
readonly title = input.required<string>()
408+
readonly content = input('No content available')
409409
}
410410
```
411411

docs/src/en/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const routes: Routes = [
103103
{ path: 'authors/:id', component: AuthorDetailsComponent },
104104
{ path: 'books', component: BookListComponent },
105105
{ path: 'books/:id', component: BookDetailsComponent },
106-
{ path: '', pathMatch: 'full', redirectTo: '/home' }
106+
{ path: '', pathMatch: 'full', redirectTo: '/home' },
107107
{ path: '**', redirectTo: '/home' }
108108
]
109109
```

docs/src/en/rxjs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ For objects, an alternative syntax exists to avoid repetitively using the async
218218
<p>{{(user | async)?.age}}</p>
219219

220220
<!-- PREFERRED WAY -->
221-
@if (user | async as user) {
221+
@if (user | async; as user) {
222222
<p>{{user.firstName}}</p>
223223
<p>{{user.lastName}}</p>
224224
<p>{{user.age}}</p>

docs/src/en/services.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ npm install
190190
npm start
191191
```
192192

193-
The `npm start` command will ask you for an API key. Either wait on the instructor to give it to you, alternatively, you can generate one [here](https://www.omdbapi.com/apikey.aspx?__EVENTTARGET=freeAcct&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%2FwEPDwUKLTIwNDY4MTIzNQ9kFgYCAQ9kFgICBw8WAh4HVmlzaWJsZWhkAgIPFgIfAGhkAgMPFgIfAGhkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYDBQtwYXRyZW9uQWNjdAUIZnJlZUFjY3QFCGZyZWVBY2N0oCxKYG7xaZwy2ktIrVmWGdWzxj%2FDhHQaAqqFYTiRTDE%3D&__VIEWSTATEGENERATOR=5E550F58&__EVENTVALIDATION=%2FwEdAAU%2BO86JjTqdg0yhuGR2tBukmSzhXfnlWWVdWIamVouVTzfZJuQDpLVS6HZFWq5fYpioiDjxFjSdCQfbG0SWduXFd8BcWGH1ot0k0SO7CfuulHLL4j%2B3qCcW3ReXhfb4KKsSs3zlQ%2B48KY6Qzm7wzZbR&at=freeAcct&Email=)
193+
The `npm start` command will ask you for an API key. Either wait on the instructor to give it to you, alternatively, you can generate one [here](https://www.omdbapi.com/apikey.aspx)
194194

195195
::: tip
196196
The backend interface contract is available here: [api-docs](http://localhost:3030/api-docs)
@@ -305,7 +305,7 @@ Note the token in the `UserResponse`, it will serve to authenticate the user via
305305
```ts
306306
private readonly httpClient = inject(HttpClient)
307307
private readonly baseUrl = 'api/user'
308-
private readonly token = signal<string | null>(null)
308+
readonly token = signal<string | null>(null)
309309

310310
login(loginRequest: LoginRequest): Observable<UserResponse> {
311311
return this.httpClient.post<UserResponse>(`${this.baseUrl}/login`, loginRequest)

docs/src/fr/components.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,8 +401,8 @@ import { Component, input } from "@angular/core"
401401
templateUrl: "./blog-post.component.html"
402402
})
403403
export class BlogPostComponent {
404-
protected readonly title = input.required<string>()
405-
protected readonly content = input('No content available')
404+
readonly title = input.required<string>()
405+
readonly content = input('No content available')
406406
}
407407
```
408408

docs/src/fr/routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const routes: Routes = [
103103
{ path: 'authors/:id', component: AuthorDetailsComponent },
104104
{ path: 'books', component: BookListComponent },
105105
{ path: 'books/:id', component: BookDetailsComponent },
106-
{ path: '', pathMatch: 'full', redirectTo: '/home' }
106+
{ path: '', pathMatch: 'full', redirectTo: '/home' },
107107
{ path: '**', redirectTo: '/home' }
108108
]
109109
```

docs/src/fr/rxjs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Pour les objets, une syntaxe alternative existe pour éviter d'utiliser de mani
217217
<p>{{(user | async)?.age}}</p>
218218

219219
<!-- METHODE À PREFEREE -->
220-
@if (user | async as user) {
220+
@if (user | async; as user) {
221221
<p>{{user.firstName}}</p>
222222
<p>{{user.lastName}}</p>
223223
<p>{{user.age}}</p>

docs/src/fr/services.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ npm install
190190
npm start
191191
```
192192

193-
La commande `npm start` vous demandera une clé d'API. Attendez que votre instructeur vous la donne ou vous pouvez en générer une [ici](https://www.omdbapi.com/apikey.aspx?__EVENTTARGET=freeAcct&__EVENTARGUMENT=&__LASTFOCUS=&__VIEWSTATE=%2FwEPDwUKLTIwNDY4MTIzNQ9kFgYCAQ9kFgICBw8WAh4HVmlzaWJsZWhkAgIPFgIfAGhkAgMPFgIfAGhkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYDBQtwYXRyZW9uQWNjdAUIZnJlZUFjY3QFCGZyZWVBY2N0oCxKYG7xaZwy2ktIrVmWGdWzxj%2FDhHQaAqqFYTiRTDE%3D&__VIEWSTATEGENERATOR=5E550F58&__EVENTVALIDATION=%2FwEdAAU%2BO86JjTqdg0yhuGR2tBukmSzhXfnlWWVdWIamVouVTzfZJuQDpLVS6HZFWq5fYpioiDjxFjSdCQfbG0SWduXFd8BcWGH1ot0k0SO7CfuulHLL4j%2B3qCcW3ReXhfb4KKsSs3zlQ%2B48KY6Qzm7wzZbR&at=freeAcct&Email=)
193+
La commande `npm start` vous demandera une clé d'API. Attendez que votre instructeur vous la donne ou vous pouvez en générer une [ici](https://www.omdbapi.com/apikey.aspx)
194194

195195
::: tip
196196
Le contrat d'interface backend est disponible ici : [api-docs](http://localhost:3030/api-docs)
@@ -306,7 +306,7 @@ Prenez note du token dans la `UserResponse`, il servira à authentifier l'utilis
306306
```ts
307307
private readonly httpClient = inject(HttpClient)
308308
private readonly baseUrl = 'api/user'
309-
private readonly token = signal<string | null>(null)
309+
readonly token = signal<string | null>(null)
310310

311311
login(loginRequest: LoginRequest): Observable<UserResponse> {
312312
return this.httpClient.post<UserResponse>(`${this.baseUrl}/login`, loginRequest)

0 commit comments

Comments
 (0)