ABP Version 7.4 Migration Guide
This document is a guide for upgrading ABP 7.3 solutions to ABP 7.4. Please read the changes to be aware of them.
See the ABP migration guide for the changes made in the ABP.
Angular UI
If you use Angular, you should follow this section.
GdprConfigModule options model has changed
GdprConfigModule{
- static forRoot(options?: ConfigModuleOptions): ModuleWithProviders<GdprConfigModule> {
+ static forRoot(options?: AbpCookieConsentOptions): ModuleWithProviders<GdprConfigModule> {
}
export interface AbpCookieConsentOptions {
isEnabled?: boolean;
cookiePolicyUrl?: string;
privacyPolicyUrl?: string;
expireDate?: Date;
}
so you should change your app.module.ts imports as below
- GdprConfigModule.forRoot({
- cookieConsent: {
- privacyPolicyUrl: 'gdpr-cookie-consent/privacy',
- cookiePolicyUrl: 'gdpr-cookie-consent/cookie',
- },
- })
+ GdprConfigModule.forRoot({
+ privacyPolicyUrl: 'gdpr-cookie-consent/privacy',
+ cookiePolicyUrl: 'gdpr-cookie-consent/cookie',
+ })