Skip to content

Commit

Permalink
fix(cookie-consent): cookie consent service was not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjulian committed Aug 4, 2021
1 parent 1407128 commit 2d799c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/lib/src/lib/cookie-consent.module.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CookieConsentService } from './cookie-consent.service';
import { ModuleWithProviders, NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import {
Expand All @@ -13,7 +14,7 @@ import { BannerModule } from './banner/banner.module';
imports: [CommonModule, BannerModule],
})
export class CookieConsentModule {
constructor() {}
constructor(private cookieConsent: CookieConsentService) {}
static forRoot(
options: CookieConsentOptions
): ModuleWithProviders<CookieConsentModule> {
Expand Down

0 comments on commit 2d799c4

Please # to comment.