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

Setting cookie with angular-cookie does not appear on $cookies #41

Open
poliveira89 opened this issue Feb 6, 2015 · 1 comment
Open

Comments

@poliveira89
Copy link

#39 seems very similar to this, so I don't know if it's duplicated, if it his. Sorry about that.

So, I have encountered a problem if I set a cookie with:

ipCookie('stuff', 'helloWorld');

I cannot see it with:

$cookies
// or
$cookies.stuff

But, I can't retrieve the values with:

ipCookie
// or
ipCookie('stuff')

It's intentionally that I cannot retrieve cookies with $cookies?

@robinj
Copy link

robinj commented Apr 4, 2016

Which version of Angular are you using? If you are using 1.3+ then you are using $cookies incorrectly: https://docs.angularjs.org/api/ngCookies/service/$cookies

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