BCJTI / ng2-cookies

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

Changed get to return empty string instead of null #22

Closed Tyxz closed 8 years ago

Tyxz commented 8 years ago

empty string is better than null. Especially because there is no difference between empty cookie and null, but null might end up in an error imho. Also added a check method to see if a cookie already exists. Might be useful.

Bigous commented 8 years ago

Sounds fair to me!

Bigous commented 8 years ago

@carcamano Could you reveiw to accept the pull and publish a new minor version on npm?

[]'s

carcamano commented 8 years ago

Published. Thanks @Tyxz