Socket
Socket
Sign inDemoInstall

@wecodeit/ng-cookie-consent

Package Overview
Dependencies
5
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @wecodeit/ng-cookie-consent

@wecodeit/ng-cookie-consent 👋


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Version

Easy way to get and manage users CookieConsent in Angular. It automatically checks for an existing consent cookie - if it exists, no cookie banner will be shown. Otherwise the basic banner will be displayed and the users input will be stored in firestore.

Demo

Install

npm i --save @wecodeit/ng-cookie-consent

Usage

Import the CookieConsent Module into your app.module.ts and initialize it with your firebase configuration.


import {CookieConsentModule} from '@wecodeit/ng-cookie-consent';

@NgModule({
    imports: [
        CookieConsentModule.forRoot(environment.firebase)
    ]
})
export class AppModule { }

If you want to use your own configuration, you can use the COOKIE_CONSENT_CONFIG InjectionToken:

import {COOKIE_CONSENT_CONFIG, CookieConsentConfig} from '@wecodeit/ng-cookie-consent';

const cookieConfig: CookieConsentConfig = {
    bannerConfig: {
        htmlHeader: '<b>Just a test</b>'
    }
}
@NgModule({
    providers: [
        { provide: COOKIE_CONSENT_CONFIG, useValue: cookieConfig }
    ]
})
export class AppModule { }

Author

👤 WeCodeIt OG


This README was generated with ❤️ by readme-md-generator

Keywords

FAQs

Last updated on 23 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc