Skip to content

Material: Guards#101

Open
d-koppenhagen wants to merge 3 commits into
mainfrom
guards
Open

Material: Guards#101
d-koppenhagen wants to merge 3 commits into
mainfrom
guards

Conversation

@d-koppenhagen
Copy link
Copy Markdown
Member

No description provided.

- Update published date from 2026-05-17 to 2026-05-23
- Update lastModified date from 2026-05-17 to 2026-05-23
@d-koppenhagen d-koppenhagen marked this pull request as ready for review May 22, 2026 09:51
Comment thread material/guards/README.md Outdated
Comment thread material/guards/README.md Outdated
Comment thread material/guards/README.md Outdated
Comment thread material/guards/README.md Outdated
Comment thread material/guards/README.md Outdated
Comment thread material/guards/README.md Outdated
Comment thread material/guards/README.md
{
path: 'admin',
loadChildren: () => import('./admin/admin.routes'),
canActivate: [authGuard]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unten wird argumentiert, dass bei canActivate das Lazy Loading trotzdem ausgeführt wird und erst vor dem Laden der Komponente der Guard prüft. Das Beispiel macht also genau das, was wir unten eigentlich nicht empfehlen.

Aber: Ich finde es hier nicht schlimm. Wenn man den Adminbereich nicht betreten darf, loggt man sich ein – oder es ist egal. Das Bundle darf ruhig runtergeladen werden.

Comment thread material/guards/README.md Outdated
Co-authored-by: Ferdinand Malcher <ferdinand@malcher.media>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants