You probably have a promise problem, where the login value is eventually set by your $http call or some other async thing.
e On Fri, Sep 26, 2014 at 1:52 PM, Esau <[email protected]> wrote: > > <https://lh6.googleusercontent.com/-a1lt8OMBxyA/VCXR3HnQhwI/AAAAAAAAAPY/WSfx-dwIuD4/s1600/sessionCannotAccess.jpg> > Here's the screenshot. In the console.log() I display the Session factory > and this is what it shows. I try to access the value login by doing > Session.login, however, it just shows undefined when doing console.log(). > Anyone know why I cant access the values? > > -- > 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. > -- 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.
