Hi,
i'm building a web app using Parse.com and facebook as login / register 
system.
I got this in place so this is more a post about general approach.

I'm to the point where I will check if my users are logged, and if not 1) 
redirect them to a specific page 2) display on top of it a login / register 
invitation.
Web app must still be functional even if user is not logged in, so it's 
really matter of displaying a discreet login / register invitation link, 
that will then send to a specific full page for user to enter their 
credentials.

My first question is: what angularjs feature should I use to always check 
if user is logged in or not, and then act upon ?
My second question is: should I better use a directive to manage this and 
show the login invitation ? Or a simple ng/hide/show on all page with all 
code hardcoded in it ?
And my last question is : can conditionals, ng/hide/shows be used in a 
template used by a directive ?

Thanks,
Benj

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to