我在 Angular 中使用ngx-cookie-consent。我想找到一种以编程方式显示/隐藏弹出窗口的方法
我尝试close
通过实例访问该方法,NgcCookieConsentService
但没有成功
这个想法是有一个这样的链接:
html:
<div>
<span (click)="displayPopPup()"> display pop up</span>
</div>
.ts
displayPopup = () => {
//trigger the popup display
}