Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocunidee committed Apr 25, 2024
1 parent df050e0 commit adc56c1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ footer: Worldline, 2023
---

::: tip
This training is also available in [French](/fr/) / Cette formation est aussi disponible en [Français](/fr/)
This training is also available in [French](fr/) / Cette formation est aussi disponible en [Français](fr/)
:::

## Prerequisites
Expand Down
2 changes: 1 addition & 1 deletion docs/src/fr/rxjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ Quand unsubscribe ? Si vous n'avez aucune certitude que l'`Observable` s'achève

Comment unsubscribe ? Il y a deux manières :
- La méthode `subscribe` renvoie un objet `Subscription` qui dont la mémoire peut être désallouée en appelant la méthode unsubscribe sur celui-ci lorsque vous le souhaitez, généralement lorsque le composant dans lequel il réside est détruit.
- En utilisant l'opérateur `takeUntil` ([marble](https://rxmarbles.com/#takeUntil) / [documentation](https://rxjs.dev/api/operators/takeUntil)) et un [`Subject` ](https://rxjs.dev/guide/subject) qui est un type spécial d'`Obversable` sur lequel il est possible d'appeler les méthodes next(), error() et complete().
- En utilisant l'opérateur `takeUntil` ([marble](https://rxmarbles.com/#takeUntil) / [documentation](https://rxjs.dev/api/operators/takeUntil)) et un [`Subject` ](https://rxjs.dev/guide/subject) qui est un type spécial d'`Observable` sur lequel il est possible d'appeler les méthodes next(), error() et complete().

La deuxième méthode est plus facile à maintenir lorsque votre base de code grandit, c'est donc celle que vous devriez privilégier.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/fr/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Les noms de type `String`, `Number` et `Boolean` (commençant par des lettres ma

- `any` une valeur non typée
- `object` une valeur non primitive
- `undefinded` une valeur non initialisée
- `undefined` une valeur non initialisée
- `null` une valeur explicitement vide
- `void` représente la valeur de retour des fonctions qui ne renvoient pas de valeur. C'est le type inféré chaque fois qu'une fonction n'a pas d'instructions de retour ou ne renvoie aucune valeur explicite à partir de ces instructions de retour
- `never` représente des valeurs qui ne sont *jamais* observées. Dans un type de retour, cela signifie que la fonction lève une exception ou termine l'exécution du programme
Expand Down
2 changes: 1 addition & 1 deletion docs/src/rxjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ When should you unsubscribe? If you have no certainty the `Observable` will comp

How to unsubscribe? There are two ways:
- The `subscribe` method returns a `Subscription` object that can be disposed of by calling the unsubscribe method on it when desired, usually when the component it lives in is destroyed.
- Using the `takeUntil` operator ([marble](https://rxmarbles.com/#takeUntil) / [documentation](https://rxjs.dev/api/operators/takeUntil)) and a [`Subject`](https://rxjs.dev/guide/subject) which is a special kind of `Obversable` on which it is possible to call the next(), error() and complete() methods.
- Using the `takeUntil` operator ([marble](https://rxmarbles.com/#takeUntil) / [documentation](https://rxjs.dev/api/operators/takeUntil)) and a [`Subject`](https://rxjs.dev/guide/subject) which is a special kind of `Observable` on which it is possible to call the next(), error() and complete() methods.

The second way is easier to maintain when your code base grows so it is the one you should favour using.

Expand Down
4 changes: 2 additions & 2 deletions docs/src/services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Dependencies can be provided at three levels:
</CodeGroup>

5. Conditionally show the Logout button depending on the `loggedIn` status of the user
6. Use a navigation guard to redirect the user who wants to access the film search page to `/login` if they is not authenticated (make the CanActivate return true if the route can be accessed else return a `UrlTree` via the `createUrlTree` method of the `Router` service). To future-proof the guard, add a returnUrl as a queryParam to the returned `UrlTree` so that the `LoginFormComponent` knows where to navigate back to after authentication and modify the `LoginFormComponent` accordingly. To generate the navigation guard use the following CLI command:
6. Use a navigation guard to redirect the user who wants to access the film search page to `/login` if they are not authenticated (make the CanActivate return true if the route can be accessed else return a `UrlTree` via the `createUrlTree` method of the `Router` service). To future-proof the guard, add a returnUrl as a queryParam to the returned `UrlTree` so that the `LoginFormComponent` knows where to navigate back to after authentication and modify the `LoginFormComponent` accordingly. To generate the navigation guard use the following CLI command:

```sh
ng generate guard guards/authentication
Expand Down Expand Up @@ -441,7 +441,7 @@ login(): void {

```ts
private errorHandler(errorResponse: HttpErrorResponse): void {
this.errorMessage = errorResponse.error.error ?? `${error.status} - ${error.statusText}`
this.errorMessage = errorResponse.error.error ?? `${errorResponse.error.status} - ${errorResponse.error.statusText}`
}

// subscribe syntax
Expand Down
2 changes: 1 addition & 1 deletion docs/src/typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ The type names `String`, `Number`, and `Boolean` (starting with capital letters)

- `any` an untyped value
- `object` a non-primitive value
- `undefinded` an uninitialized value
- `undefined` an uninitialized value
- `null` an explicitely empty value
- `void` represents the return value of functions which don’t return a value. It’s the inferred type any time a function doesn’t have any return statements, or doesn’t return any explicit value from those return statements
- `never` represents values which are *never* observed. In a return type, this means that the function throws an exception or terminates the execution of the program.
Expand Down

0 comments on commit adc56c1

Please sign in to comment.