0.9.2 • Published 6 years ago

ngx-material-cookie-compliance v0.9.2

Weekly downloads
36
License
-
Repository
github
Last release
6 years ago

ngx-material-cookie-compliance

Cookie compliance bar for Angular projects in Material Design

alt text

Getting started

npm install --save ngx-material-cookie-compliance

Import the module in your app.module.ts

// ...
import { NgxMaterialCookieComplianceModule } from 'ngx-material-cookie-compliance';

@NgModule({
    declarations: [
        // ...
    ],
    entryComponents: [],
    imports: [
        NgxMaterialCookieComplianceModule,
        // ...
    ],
    providers: [],
    bootstrap: [AppComponent]
})
export class AppModule {
}

Add the selector to your app.component.html

<ngx-material-cookie-compliance></ngx-material-cookie-compliance>

Features

  • Multi language support (en/de/es/fr/it)
  • Custom text for every button and message
  • Full Angular Material Design

Dependencies

  • @angular/animations
  • @angular/cdk
  • @angular/common
  • @angular/core
  • @angular/material

Tested with version 6

API

Inputdescriptiondefault
languageen / de / es / fr / iten
textText main text of the cookie complianceThis website uses cookies to improve user experience. By continuing to use the website, you are granting your consent.
buttonTextText of the button that leads to your cookie complianceCookie policy
buttonCloseTextText of the button to close the cookie complianceOk
targetURLthe URL to your cookie compliance pagehttps://google.com
embedCookieCompliancefalse will hide the cookie compliancetrue
delayDelay until the cookie bar gets displayed3000

License

MIT

0.9.2

6 years ago

0.9.15

6 years ago

0.9.14

6 years ago

0.9.13

6 years ago

0.9.12

6 years ago

0.9.11

6 years ago

0.9.1

6 years ago

0.0.1

6 years ago