This library provides a quick and easy wrapper for CookieConsent V3.
Install the package first:
npm install @studiohyperdrive/ngx-cookies
Add the CookieConsent CSS to the build step.
"styles": [
"node_modules/vanilla-cookieconsent/dist/cookieconsent.css"
],
This package will follow a semver-like format, major.minor.patch
, in which:
-
major
: Follows the Angular major version -
minor
: Introduces new features and (potential) breaking changes -
patch
: Introduces bugfixes and minor non-breaking changes
For more information about the build process, authors, contributions and issues, we refer to the hyperdrive-opensource repository.
The ngx-cookies
package was made as an extension on top of the vanilla CookieConsent in order to provide several Angular based functionalities such as a setup through a server, Observables for the provided events and a directive to handle cookie based content.
The package refrains from adding too much custom logic and is entirely based on the existing CookieConsent API. We refer to the documentation of said package for more information regarding the setup of the cookie handler.
To find more information regarding this package, we refer to our documentation platform.