I would like to know how can I store cookies with Angular. I want my cookies to be persistent so that when the browser is closed, I can still access them.
I want to store language preferences on the clients computer.
I already tried $cookies
and $cookieStore
but they only seem to work for the current session. When the browser is reopened, no data is found.
So how can I store persistent cookies with angular?
I have this example here and it has the same behavior in Chrome and FF.