mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 16:30:13 +01:00
feat: allow urls without # for demo
This commit is contained in:
parent
a3f5d4f32b
commit
0de3c3a680
3 changed files with 3 additions and 4 deletions
|
|
@ -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",
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ const routes: Routes = [
|
||||||
];
|
];
|
||||||
|
|
||||||
const config: ExtraOptions = {
|
const config: ExtraOptions = {
|
||||||
useHash: true,
|
useHash: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
|
|
||||||
|
|
@ -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 {
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue