Skip to content

Commit

Permalink
refactor: add Angular hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewJBateman committed Oct 24, 2023
1 parent abb2e28 commit 22b9ff6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { BrowserModule } from '@angular/platform-browser';
import {
BrowserModule,
provideClientHydration,
} from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -15,15 +18,15 @@ import { environment } from '../environments/environment';
@NgModule({
declarations: [AppComponent, NavComponent, HomeComponent, NotFoundComponent],
imports: [
BrowserModule.withServerTransition({ appId: 'serverApp' }),
BrowserModule,
AppRoutingModule,
BrowserAnimationsModule,
HttpClientModule,
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: environment.production,
}),
],
providers: [],
providers: [provideClientHydration()],
bootstrap: [AppComponent],
})
export class AppModule {}

0 comments on commit 22b9ff6

Please sign in to comment.