Skip to content

Commit 6195717

Browse files
committed
chore(release): update to angular 21
1 parent a670800 commit 6195717

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

apps/docs/src/app/app.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import { docDemoDisplayerProcessor } from './shared/processors/doc-demo-displaye
44
import { provideFlowbiteThemeConfig } from 'flowbite-angular/theme-toggle';
55

66
import { provideHttpClient, withFetch, withInterceptorsFromDi } from '@angular/common/http';
7-
import { type ApplicationConfig } from '@angular/core';
7+
import { provideZoneChangeDetection, type ApplicationConfig } from '@angular/core';
88
import { provideClientHydration } from '@angular/platform-browser';
9-
import { provideAnimations } from '@angular/platform-browser/animations';
109
import { provideRouter, withInMemoryScrolling } from '@angular/router';
1110
import {
1211
NG_DOC_DEFAULT_PAGE_PROCESSORS,
@@ -23,7 +22,6 @@ import { provideNgDocContext } from '@ng-doc/generated';
2322
export const appConfig: ApplicationConfig = {
2423
providers: [
2524
// #region NgDoc
26-
provideAnimations(),
2725
provideNgDocContext(),
2826
provideNgDocApp({
2927
shiki: {
@@ -42,6 +40,7 @@ export const appConfig: ApplicationConfig = {
4240
provideMainPageProcessor(NG_DOC_DEFAULT_PAGE_PROCESSORS),
4341
providePageProcessor(docDemoDisplayerProcessor),
4442
// #endregion
43+
provideZoneChangeDetection(),
4544
provideClientHydration(),
4645
provideRouter(
4746
appRoutes,

apps/docs/src/main.server.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import { AppComponent } from './app/app.component';
22
import { config } from './app/app.config.server';
33

4-
import { provideZoneChangeDetection } from '@angular/core';
54
import type { BootstrapContext } from '@angular/platform-browser';
65
import { bootstrapApplication } from '@angular/platform-browser';
76

87
const bootstrap = (context: BootstrapContext) =>
9-
bootstrapApplication(
10-
AppComponent,
11-
{ ...config, providers: [provideZoneChangeDetection(), ...config.providers] },
12-
context
13-
);
8+
bootstrapApplication(AppComponent, config, context);
149

1510
export default bootstrap;

apps/docs/src/main.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ import { AppComponent } from './app/app.component';
22
import { appConfig } from './app/app.config';
33
import { environment } from './environments/environment';
44

5-
import { enableProdMode, provideZoneChangeDetection } from '@angular/core';
5+
import { enableProdMode } from '@angular/core';
66
import { bootstrapApplication } from '@angular/platform-browser';
77

88
if (environment.production) {
99
enableProdMode();
1010
}
1111

12-
bootstrapApplication(AppComponent, {
13-
...appConfig,
14-
providers: [provideZoneChangeDetection(), ...appConfig.providers],
15-
}).catch((e) => console.log(e));
12+
bootstrapApplication(AppComponent, appConfig).catch((e) => console.log(e));

0 commit comments

Comments
 (0)