ABP Commercial Version 7.4 Migration Guide
This document is a guide for upgrading ABP Commercial 7.3 solutions to ABP Commercial 7.4. Please read the changes to be aware of them.
See the ABP Framework migration guide for the changes made in the ABP Framework.
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',
+ })