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", "start": "ng serve",
"build": "ng build", "build": "ng build",
"build:prod": "npm run build -- --prod --aot", "build:prod": "npm run build -- --prod --aot",
"build:demo:prod": "npm run build -- --prod --aot --base-href /ngx-admin/",
"test": "ng test", "test": "ng test",
"test:coverage": "rimraf coverage && npm run test -- --code-coverage", "test:coverage": "rimraf coverage && npm run test -- --code-coverage",
"lint": "ng lint", "lint": "ng lint",

View file

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

View file

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