Examples: indicating a valid domain where the cookie should be visible. Default: Cookie is visible only to the domain or subdomain of the page where the cookie was created, except for Internet Explorer (see below).
You can't update a cookie per se, you can however overwrite it.
Otherwise, this is what you are looking for: works.
When creating a cookie you can pass an Array or Object Literal instead of a string in the value.
If you do so, js-cookie will store the string representation of the object according to This project is RFC 6265 compliant.
This site and all of its contents are referring to Angular JS (version 1.x), if you are looking for the latest Angular, please visit