angular-cookie icon indicating copy to clipboard operation
angular-cookie copied to clipboard

Allow defaults via provider

Open robbaman opened this issue 11 years ago • 3 comments

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.

robbaman avatar Aug 11 '14 09:08 robbaman

seems to be good. Can you please update readme.md to explain new feature

ivpusic avatar Aug 19 '14 19:08 ivpusic

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.

robbaman avatar Aug 19 '14 19:08 robbaman

I've updated the README.md file, let me know if you you want any additional comments.

robbaman avatar Aug 20 '14 07:08 robbaman