+
Skip to content

feat(router): add support for @angular/fire guards #1131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/router/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
CanActivateFn,
CanDeactivateFn,
CanMatchFn,
DeprecatedGuard,
Copy link
Member

Choose a reason for hiding this comment

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

What version of Angular was this introduced?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it was added since Angular 15.2

angular/angular@926c35f

Copy link
Member

Choose a reason for hiding this comment

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

Ok cool. We support back to Angular v15 so just wanted to make sure

ResolveFn,
Route,
} from '@angular/router';
Expand All @@ -25,7 +26,7 @@ export type RouteConfig = Omit<Route, OmittedRouteProps>;

export interface DefaultRouteMeta
extends Omit<Route, OmittedRouteProps | keyof RedirectRouteMeta> {
canActivate?: CanActivateFn[];
canActivate?: CanActivateFn[] | DeprecatedGuard[];
canActivateChild?: CanActivateChildFn[];
canDeactivate?: CanDeactivateFn<unknown>[];
canMatch?: CanMatchFn[];
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载