Cookie not working outside the component.js


Hi, I use this plugin for my cookie

The problem is if I declare the cookie in component/registration.js, i see the cookie only in this page.

If i try to take the cookie for example in component/login.js the value is “”. I try to use the default example:

  this.cookie.setCookie('my-key', 'my-value', { expires: 7, path: '/' })


You should ask this question at