Skip to content

Commit

Permalink
Updated app module providers
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderSt512 committed Nov 7, 2024
1 parent 5112277 commit 4fd9f1c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { AdminsGuard } from './core/guards/admins.guard';
import { AlertModule } from './core/modules/alert/alert.module';
import { ModalModule } from './core/modules/modal/modal.module';
import { NgxTinymceModule } from 'ngx-tinymce';
import { HashLocationStrategy, LocationStrategy } from '@angular/common';

const routes: Routes = [
{
Expand Down Expand Up @@ -209,7 +210,15 @@ const routes: Routes = [
baseURL: '//cdnjs.cloudflare.com/ajax/libs/tinymce/5.7.1/'
})
],
providers: [AuthenticatedGuard, GuestGuard, AdminsGuard],
providers: [
AuthenticatedGuard,
GuestGuard,
AdminsGuard,
{
provide: LocationStrategy,
useClass: HashLocationStrategy
}
],
bootstrap: [AppComponent]
})
export class AppModule {}

0 comments on commit 4fd9f1c

Please sign in to comment.