我正在尝试让允许Cookie按钮与ngx- Cookies连接,但无论何时我点击允许,hasConsented()仍然返回假,甚至在点击允许之后,当我刷新页面时弹出窗口总是显示。到目前为止,我已经尝试了info,选择加入或选择退出我的设置,但没有成功。 按钮字符串文本在i18n文件中。 this.statusChangeSubscription = this.ccService.statusChange$.subscribe((event: NgcStatusChangeEvent) => {
// you can use this.ccService.getConfig(