I am using ng2-cookies
, but when I try to use setCookie
, it's not showing intelligence.
I get the error here:
Cookie.setCookie('')
答案 0 :(得分:1)
.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';