Skip to content
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

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

Merged

Conversation

dalenguyen
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

Which package are you modifying?

  • vite-plugin-angular
  • vite-plugin-nitro
  • vitest-angular
  • astro-angular
  • create-analog
  • router
  • platform
  • content
  • nx-plugin
  • trpc

What is the current behavior?

Closes #1130

What is the new behavior?

Able to pass functional guards from @angular/fire

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

[optional] What gif best describes this PR or how it makes you feel?

Copy link

netlify bot commented May 30, 2024

Deploy Preview for analog-blog ready!

Name Link
🔨 Latest commit f1885bf
🔍 Latest deploy log https://app.netlify.com/sites/analog-blog/deploys/665890d69a49d20008cc2930
😎 Deploy Preview https://deploy-preview-1131--analog-blog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 30, 2024

Deploy Preview for analog-app ready!

Name Link
🔨 Latest commit f1885bf
🔍 Latest deploy log https://app.netlify.com/sites/analog-app/deploys/665890d6d6613a0008ba6e22
😎 Deploy Preview https://deploy-preview-1131--analog-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented May 30, 2024

Deploy Preview for analog-docs ready!

Name Link
🔨 Latest commit f1885bf
🔍 Latest deploy log https://app.netlify.com/sites/analog-docs/deploys/665890d6aa93c400085d02cf
😎 Deploy Preview https://deploy-preview-1131--analog-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dalenguyen
Copy link
Contributor Author

I mimic the current behavior from Route interface. It works when testing locally.

image

Copy link

netlify bot commented May 30, 2024

Deploy Preview for analog-ng-app ready!

Name Link
🔨 Latest commit f1885bf
🔍 Latest deploy log https://app.netlify.com/sites/analog-ng-app/deploys/665890d69a49d20008cc2932
😎 Deploy Preview https://deploy-preview-1131--analog-ng-app.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -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

@brandonroberts brandonroberts merged commit 84646d8 into analogjs:beta May 30, 2024
23 of 24 checks passed
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.

Issue with Route Guards from @angular/fire
2 participants