Skip to content

Commit

Permalink
feat: Router with Hash Location (#4)
Browse files Browse the repository at this point in the history
* fix: Router problem

* feat: with Hash Location
  • Loading branch information
GuangChen2333 authored Nov 24, 2024
1 parent 534c45f commit e33636f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core';
import {provideRouter, withComponentInputBinding} from '@angular/router';
import {provideRouter, withComponentInputBinding, withHashLocation} from '@angular/router';

import {routes} from './app.routes';
import {provideClientHydration} from '@angular/platform-browser';
Expand All @@ -9,7 +9,7 @@ import {provideHttpClient, withFetch} from '@angular/common/http';
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({eventCoalescing: true}),
provideRouter(routes, withComponentInputBinding()),
provideRouter(routes, withComponentInputBinding(), withHashLocation()),
provideClientHydration(),
provideAnimationsAsync(),
provideHttpClient(
Expand Down

0 comments on commit e33636f

Please sign in to comment.