3.1.3 • Published 2 years ago

@wecodeit/ng-cookie-consent v3.1.3

Weekly downloads
-
License
-
Repository
-
Last release
2 years 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

2 years ago

3.1.2

2 years ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.3.4

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.3.8

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.4

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago