mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +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",
|
||||
"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",
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ const routes: Routes = [
|
|||
];
|
||||
|
||||
const config: ExtraOptions = {
|
||||
useHash: true,
|
||||
useHash: false,
|
||||
};
|
||||
|
||||
@NgModule({
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue