After install 'ng2-cookies why cookie.SetCooki not showing

时间:2017-08-05 11:39:38

标签: angular angular2-forms angular2-cookie

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

I get the error here:

 Cookie.setCookie('') 

1 个答案:

答案 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';