1

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.

tzortzik
  • 4,993
  • 9
  • 57
  • 88
  • 1
    See: http://stackoverflow.com/questions/12624181/angularjs-how-to-set-expiration-date-for-cookie-in-angularjs. You might consider using localStorage as well. – jme11 May 21 '15 at 12:24

0 Answers0