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
acb2caced0
commit
bccf8da35f
|
@ -3392,10 +3392,10 @@ The admin feature is now protected by the guard, albeit protected poorly.
|
|||
|
||||
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">
|
||||
ng generate service admin/auth
|
||||
ng generate service auth/auth
|
||||
</code-example>
|
||||
|
||||
Update the `AuthService` to log in the user:
|
||||
|
|
Loading…
Reference in New Issue