Allow defaults via provider
Looks like alot has changed, but I've pretty much just put everything that was there in the this.$get property of the provider as opposed to using the shortcut factory method. This allows me to expose the setDefaults() function on the provider.
Mostly useful to be able to set the default path or expires options so you don't have to provide them on every call to ipCookie. Didn't include the minfied file as I assume you'd want to change version numbers etc.
seems to be good. Can you please update readme.md to explain new feature
Sure thing, I'll look at it tomorrow. On Aug 19, 2014 9:23 PM, "Ivan Pusic" [email protected] wrote:
seems to be good. Can you please update readme.md to explain new feature
— Reply to this email directly or view it on GitHub https://github.com/ivpusic/angular-cookie/pull/27#issuecomment-52685366.
I've updated the README.md file, let me know if you you want any additional comments.