3.1.3 ā€¢ Published 12 months ago

@wecodeit/ng-cookie-consent v3.1.3

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

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

3.1.3

12 months ago

3.1.2

12 months ago

3.1.1

12 months ago

3.1.0

12 months ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.3.4

1 year ago

2.3.3

1 year ago

2.3.2

1 year ago

2.3.1

1 year ago

2.3.0

1 year ago

2.2.1

1 year ago

2.2.0

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.3.8

1 year ago

1.3.7

2 years ago

1.3.6

2 years ago

1.3.4

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago