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

Showing navbar menu only if user authenticated. #213

Closed
jbcarpanelli opened this issue Sep 21, 2015 · 1 comment
Closed

Showing navbar menu only if user authenticated. #213

jbcarpanelli opened this issue Sep 21, 2015 · 1 comment

Comments

@jbcarpanelli
Copy link

Hello there! I am developing an angularJS web application using ng-token-auth and an API using devise-token-auth in two separate apps. My main problem is that I want to hide (not really hide, but avoid rendering it) some html if there is no session started (So this html is not visible using 'inspect element') . Is this possible using angularJS? I also think my problem here is about angularJS and not about this library in particular, but since I am using ng-token-auth and its "helpers" for managing sessions, I found appropriate to ask this question here.

Thanks.

@askobara
Copy link
Contributor

Hello!
I think ng-if="user.signedIn" will help you

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

3 participants