Skip to content

Commit 3fa29d8

Browse files
committed
Upgrade to Angular 16
1 parent 0a9926b commit 3fa29d8

File tree

3 files changed

+2351
-1317
lines changed

3 files changed

+2351
-1317
lines changed

angular/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"test": "ng test"
1414
},
1515
"dependencies": {
16-
"@angular/animations": "^15.0.3",
17-
"@angular/common": "^15.0.3",
18-
"@angular/compiler": "^15.0.3",
19-
"@angular/core": "^15.0.3",
20-
"@angular/forms": "^15.0.3",
21-
"@angular/platform-browser": "^15.0.3",
22-
"@angular/platform-browser-dynamic": "^15.0.3",
23-
"@angular/router": "^15.0.3",
16+
"@angular/animations": "^16.2.12",
17+
"@angular/common": "^16.2.12",
18+
"@angular/compiler": "^16.2.12",
19+
"@angular/core": "^16.2.12",
20+
"@angular/forms": "^16.2.12",
21+
"@angular/platform-browser": "^16.2.12",
22+
"@angular/platform-browser-dynamic": "^16.2.12",
23+
"@angular/router": "^16.2.12",
2424
"@aspnet/signalr": "^1.1.4",
2525
"@fortawesome/fontawesome-free": "^6.2.1",
2626
"abp-ng2-module": "8.0.0",
@@ -38,12 +38,12 @@
3838
"sweetalert2": "^11.6.15",
3939
"ts-helpers": "^1.1.2",
4040
"tslib": "^2.4.1",
41-
"zone.js": "~0.12.0"
41+
"zone.js": "~0.13.3"
4242
},
4343
"devDependencies": {
44-
"@angular-devkit/build-angular": "^15.0.3",
45-
"@angular/cli": "^15.0.3",
46-
"@angular/compiler-cli": "^15.0.3",
44+
"@angular-devkit/build-angular": "^16.2.10",
45+
"@angular/cli": "^16.2.10",
46+
"@angular/compiler-cli": "^16.2.12",
4747
"@angularclass/hmr": "^3.0.0",
4848
"@types/jasmine": "~4.3.1",
4949
"@types/lodash-es": "^4.17.6",
@@ -62,7 +62,7 @@
6262
"protractor": "~7.0.0",
6363
"ts-node": "^10.9.1",
6464
"tslint": "~6.1.0",
65-
"typescript": "4.8.4",
65+
"typescript": "5.1.6",
6666
"webpack-bundle-analyzer": "^4.7.0"
6767
},
6868
"angular-cli": {}

angular/src/shared/auth/auth-route-guard.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,10 @@ import { Injectable } from '@angular/core';
22
import { PermissionCheckerService } from 'abp-ng2-module';
33
import { AppSessionService } from '../session/app-session.service';
44

5-
import {
6-
CanActivate, Router,
7-
ActivatedRouteSnapshot,
8-
RouterStateSnapshot,
9-
CanActivateChild
10-
} from '@angular/router';
5+
import { Router, ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
116

127
@Injectable()
13-
export class AppRouteGuard implements CanActivate, CanActivateChild {
8+
export class AppRouteGuard {
149

1510
constructor(
1611
private _permissionChecker: PermissionCheckerService,

0 commit comments

Comments
 (0)