0

I am using ng2-cookies, but when I try to use setCookie, it's not showing intelligence.

I get the error here:

 Cookie.setCookie('') 
ItamarG3
  • 4,092
  • 6
  • 31
  • 44

1 Answers1

0

.as the doc say https://github.com/BCJTI/ng2-cookies/wiki/Static-Class-%7C-Minimum-Example .. you need to IMPORt it

import { Cookie } from 'ng2-cookies';
federico scamuzzi
  • 3,708
  • 1
  • 17
  • 24