And Anthony, thanks for your work!
I was hoping there is someone in here who could help me.
I have just added this library and made the authguard work in terms of redirecting to Home if I try to deeplink. However when logging in, there is no automatic redirect to the desired route.
My app.module looks somewhat like this:
() => 'App',
authGuardFallbackURL: 'home', // url for unauthenticated users - to use in combination with canActivate feature on a route
authGuardLoggedInURL: 'kitchendisplay', // url for authenticated users - to use in combination with canActivate feature on a route
I have added canActivate for the kitchendisplay component, while also tried in the login and home component, with the same result.
I hope any of you could help. Thanks,
root@8b911707f1c4:/work/hpad# npm run prod
email@example.com prod /work/hpad
ng build --prod
Browserslist: caniuse-lite is outdated. Please run next command
ERROR in src/app/app.module.ts(75,5): Error during template compile of 'ɵ0'
Function expressions are not supported in decorators
Consider changing the function expression into an exported function.
min/maxinput parameters in components should be within this range.