$cookieStore
(service in module ngCookies
)
Provides a key-value (string-object) storage, that is backed by session cookies. Objects put or retrieved from this storage are automatically serialized or deserialized by angular's toJson/fromJson.
Returns the value of given cookie key
key – {string} –
Id to use for lookup.
{Object}
– Deserialized cookie value.
Sets a value for given cookie key
key – {string} –
Id for the value
.
value – {Object} –
Value to be stored.
Remove given cookie
key – {string} –
Id of the key-value pair to delete.