refactor: switch to path location strategy

This commit is contained in:
Sergey Andrievskiy 2019-06-24 13:04:43 +03:00
parent ea1a3699fb
commit 7dfb683b85
3 changed files with 2 additions and 6 deletions

View file

@ -50,7 +50,7 @@ const routes: Routes = [
];
const config: ExtraOptions = {
useHash: true,
useHash: false,
};
@NgModule({

View file

@ -3,7 +3,6 @@
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { APP_BASE_HREF } from '@angular/common';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
@ -44,9 +43,6 @@ import {
CoreModule.forRoot(),
],
bootstrap: [AppComponent],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
],
})
export class AppModule {
}

View file

@ -9,7 +9,7 @@ export class CountryOrdersMapService {
constructor(private http: HttpClient) {}
getCords(): Observable<any> {
return this.http.get('./assets/leaflet-countries/countries.geo.json');
return this.http.get('assets/leaflet-countries/countries.geo.json');
}
}