showing results for - "angular this web site use cookie example"
Tommaso
27 Apr 2016
1<!-- put this code in youre index page -->
2<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.css" />
3<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.1.0/cookieconsent.min.js"></script>
4<!--and this is for your app.component file -->
5let cc = window as any;
6       cc.cookieconsent.initialise({
7         palette: {
8           popup: {
9             background: "#164969"
10           },
11           button: {
12             background: "#ffe000",
13             text: "#164969"
14           }
15         },
16         theme: "classic",
17         content: {
18           message: this.cookieMessage,
19           dismiss: this.cookieDismiss,
20           link: this.cookieLinkText,
21           href: environment.Frontend + "/dataprivacy" 
22         }
23       });
24