What is the equivalent to AngularJS’s ngcookie in Angular 6? [closed]

  1. npm install ngx-cookie-service --save
  2. Add to your module: import { CookieService } from 'ngx-cookie-service';
  3. Add CookieService to module’s providers.
  4. Inject it into your constructor.
  5. Use cookie.get(nameOfCookie) for getting a specific cookie,
    use cookie.set(nameOfCookie,cookieValue) for adding a new cookie.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)