docs(router): fix misnamed path (#27879)
This change matches the routes found in the following code example for auth.guard.ts as well as the login.component.1.ts in the "Add the LoginComponent" section. PR Close #27879
This commit is contained in:
parent
2530c9d2dd
commit
457781906b
@ -3392,10 +3392,10 @@ The admin feature is now protected by the guard, albeit protected poorly.
|
|||||||
|
|
||||||
Make the `AuthGuard` at least pretend to authenticate.
|
Make the `AuthGuard` at least pretend to authenticate.
|
||||||
|
|
||||||
The `AuthGuard` should call an application service that can login a user and retain information about the current user. Generate a new `AuthService` in the `admin` folder:
|
The `AuthGuard` should call an application service that can login a user and retain information about the current user. Generate a new `AuthService` in the `auth` folder:
|
||||||
|
|
||||||
<code-example language="none" class="code-shell">
|
<code-example language="none" class="code-shell">
|
||||||
ng generate service admin/auth
|
ng generate service auth/auth
|
||||||
</code-example>
|
</code-example>
|
||||||
|
|
||||||
Update the `AuthService` to log in the user:
|
Update the `AuthService` to log in the user:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user