angular-cookie
angular-cookie copied to clipboard
Setting cookie with angular-cookie does not appear on $cookies
#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
?
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