Skip to content

Commit 1e3b922

Browse files
committed
Added client-side hydration support
1 parent 6bc61a2 commit 1e3b922

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

angular/src/root.module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { NgModule, APP_INITIALIZER, LOCALE_ID,provideExperimentalZonelessChangeDetection} from '@angular/core';
2-
import { BrowserModule } from '@angular/platform-browser';
2+
import { BrowserModule, provideClientHydration } from '@angular/platform-browser';
33
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
44
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
55

@@ -44,6 +44,7 @@ export function getCurrentLanguage(): string {
4444
declarations: [RootComponent],
4545
providers: [
4646
provideExperimentalZonelessChangeDetection(),
47+
provideClientHydration(),
4748
{ provide: HTTP_INTERCEPTORS, useClass: AbpHttpInterceptor, multi: true },
4849
{
4950
provide: APP_INITIALIZER,

0 commit comments

Comments
 (0)