Skip to content

Commit ef27a36

Browse files
committed
fix: using HashLocationStrategy in order to about 404 Not Found error
Signed-off-by: Maximillian Arruda <[email protected]>
1 parent ed43ae2 commit ef27a36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front-end/src/app/app.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {StatusBar} from '@ionic-native/status-bar/ngx';
99
import {AppComponent} from './app.component';
1010
import {AppRoutingModule} from './app-routing.module';
1111
import {HttpClientModule} from '@angular/common/http';
12-
12+
import { HashLocationStrategy, LocationStrategy } from '@angular/common';
1313
@NgModule({
1414
declarations: [AppComponent],
1515
entryComponents: [],
@@ -22,7 +22,7 @@ import {HttpClientModule} from '@angular/common/http';
2222
providers: [
2323
StatusBar,
2424
SplashScreen,
25-
{provide: RouteReuseStrategy, useClass: IonicRouteStrategy}
25+
{ provide: LocationStrategy, useClass: HashLocationStrategy }
2626
],
2727
bootstrap: [AppComponent]
2828
})

0 commit comments

Comments
 (0)