Willkommen 👋

Implementierung von CookieConsent V3

Installation über NPM / CDN 1. NPM npm i vanilla-cookieconsent@3.0.1 2. CDN <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.css"> <script src="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@3.0.1/dist/cookieconsent.umd.js"></script> Mit Angular verwenden Die cookieconsent.css wird in der angular.json unter styles deklariert: { ... "build": { "options": { "styles": [ "node_modules/vanilla-cookieconsent/dist/cookieconsent.css" ] } } ... } Imports import * as CookieConsent from 'vanilla-cookieconsent'; cookietest.component.ts...

June 7, 2024 Â· 4 min