mirror of https://github.com/abpframework/abp
Merge pull request #4510 from abpframework/feat/upgrade-angular-version
Upgraded Angular versions to v10pull/4513/head
commit
398945be0c
@ -0,0 +1,20 @@
|
||||
import { RoutesService, eLayoutType } from '@abp/ng.core';
|
||||
import { APP_INITIALIZER } from '@angular/core';
|
||||
|
||||
export const APP_ROUTE_PROVIDER = [
|
||||
{ provide: APP_INITIALIZER, useFactory: configureRoutes, deps: [RoutesService], multi: true },
|
||||
];
|
||||
|
||||
function configureRoutes(routes: RoutesService) {
|
||||
return () => {
|
||||
routes.add([
|
||||
{
|
||||
path: '/',
|
||||
name: '::Menu:Home',
|
||||
iconClass: 'fas fa-home',
|
||||
order: 1,
|
||||
layout: eLayoutType.application,
|
||||
},
|
||||
]);
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compileOnSave": false,
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"outDir": "./dist/out-tsc",
|
||||
"sourceMap": true,
|
||||
"declaration": false,
|
||||
"downlevelIteration": true,
|
||||
"experimentalDecorators": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"importHelpers": true,
|
||||
"target": "es2015",
|
||||
"typeRoots": ["node_modules/@types"],
|
||||
"lib": ["es2018", "dom"]
|
||||
},
|
||||
"angularCompilerOptions": {
|
||||
"fullTemplateTypeCheck": true,
|
||||
"strictInjectionParameters": true,
|
||||
"enableIvy": true
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue