Skip to content

Commit

Permalink
use hash based routing
Browse files Browse the repository at this point in the history
Signed-off-by: Mirko Mollik <mirkomollik@gmail.com>
  • Loading branch information
cre8 committed Aug 25, 2024
1 parent 6ccb543 commit 1de8131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions viewer/src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import { provideAnimationsAsync } from '@angular/platform-browser/animations/async';
import { provideHttpClient } from '@angular/common/http';
import { LocationStrategy, HashLocationStrategy } from '@angular/common';

export const appConfig: ApplicationConfig = {
providers: [
provideRouter(routes),
provideAnimationsAsync(),
provideHttpClient(),
{ provide: LocationStrategy, useClass: HashLocationStrategy },
],
};

0 comments on commit 1de8131

Please sign in to comment.