javascript - angular $cookies doesnt work in internet explorer 11 -
i using angular-cookie version 1.5.5 , ie 11. using angular factory $cookie set , value. setting cookies @ 1 page , retrieve @ page based on show div. solution working fine in chrome , mozilla fine. not working in ie. cookies enabled in ie.
app.factory('sharedcookieservice', function ($cookies) { var expiredate = new date(); return { getcookiedata: function (key) { return $cookies.get(key); }, setcookiedata: function (key, value) { $cookies.put(key, value, { expires: expiredate }); }, .... page var xx = getcookiedata(key) getting undefined though setcookie data on b page.
Comments
Post a Comment