BCJTI / ng2-cookies

Simple library to deal with cookies in Angular2
64 stars 31 forks source link

Delete cookie with empty value #36

Closed robert-cahoon closed 7 years ago

robert-cahoon commented 7 years ago

Is there a specific reason your class won't delete a cookie if it has no value? I have a use case to delete a cookie that has no value.

Cheers, Rob C

robert-cahoon commented 7 years ago

Just an FYI - I've found a simple work around. I just update the target cookie with a value before removing.

Cheers Rob C.

Bigous commented 7 years ago

There is a very good reason - it's a bug :D tks for reporting it. I'll work on it soon.