feat: allow urls without # for demo

This commit is contained in:
Dmitry Nehaychik 2019-02-01 20:15:37 +03:00
parent a3f5d4f32b
commit 0de3c3a680
3 changed files with 3 additions and 4 deletions

View file

@ -21,6 +21,7 @@
"start": "ng serve",
"build": "ng build",
"build:prod": "npm run build -- --prod --aot",
"build:demo:prod": "npm run build -- --prod --aot --base-href /ngx-admin/",
"test": "ng test",
"test:coverage": "rimraf coverage && npm run test -- --code-coverage",
"lint": "ng lint",

View file

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

View file

@ -28,9 +28,7 @@ import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
CoreModule.forRoot(),
],
bootstrap: [AppComponent],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
],
providers: [],
})
export class AppModule {
}