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

Angular2 Component not initializing after login #66

Open
IAMtheIAM opened this issue Jun 3, 2016 · 1 comment
Open

Angular2 Component not initializing after login #66

IAMtheIAM opened this issue Jun 3, 2016 · 1 comment

Comments

@IAMtheIAM
Copy link

IAMtheIAM commented Jun 3, 2016

I copied the files from this repo and use LoggedInOutlet.ts to setup authentication in my angular2 app, which is based on the Angular2 Webpack Starter repo.

Protected routes and login works perfectly, but the problem is that after login, the component does not initialize itself. It just loads the component but all the the Angular2 stuff like {{ somevar }} don't load, UNTIL I click on a form or click the component navigation route again. Then it initializing.

What could be causing the components to fail to load after login?

Here is my app:
http://starterhome.azurewebsites.net

@chenkie
Copy link
Contributor

chenkie commented Jun 24, 2016

I just updated to rc3 and have gotten rid of the LoggedInOutlet in favor of an AuthGuard. Check it out and let me know if it helps :)

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

No branches or pull requests

2 participants