-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ngx-Cookie Consent #117
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm using ngx cookie consent to ask user if he agrees with cookie storage and usage.
link : https://github.com/tinesoft/ngx-cookieconsent
So I try this module that is perfect BUT has no option for cookie personalization pop-up.
I'd like to have three buttons: Decline, Accept AND Personalize
I already developed the below and it shows the buttons but where i can implement DeclineCookies(), CustomizeCookies and AcceptCookies() ??
const cookieConfig: NgcCookieConsentConfig = {
cookie: {
domain: 'localhost' // or 'your.domain.com' // it is mandatory to set a domain, for cookies to work properly (see https://goo.gl/S2Hy2A)
},
palette: {
popup: {
background: '#000',
},
theme: 'edgeless',
type: 'opt-out',
layout: 'my-custom-layout',
layouts: {
"my-custom-layout": '{{buttons}}'
},
elements:{
buttons:
<span id="cookieconsent:desc" class="cc-message">{{message}} <button (click)="delclineCookies()">Decline</button> <button (click)="customomizeCookies()">Customize Cookies</button> <button (click)="acceptCookies()">Accept</button> </span>
,},
content:{
message: 'By using our site, you acknowledge that you have read and understood our Policy',
}
};
The text was updated successfully, but these errors were encountered: