salemdar / angular2-cookie

Implementation of Angular 1.x $cookies service to Angular 2
MIT License
109 stars 29 forks source link

Removing a cookie or getting a key that does not exist creates a cookie #23

Closed cocoviper closed 8 years ago

cocoviper commented 8 years ago

Hi

I found that when getting a cookie that does not exist , a cookie is created with a string value "undefined" .

I attempted to remove it,but found out that a removed cookie is set to "undefined" also instead of being removed.

I'm using Angular Final with version 1.2.4 of your tool

salemdar commented 8 years ago

I will investigate this issue asap and release a new version with the fix. Thanks for letting me know.

salemdar commented 8 years ago

I could not reproduce the issue with Chrome or Firefox.