From d123f45d76709a3f6da68d78c5f849047a2cccab Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Fri, 4 Aug 2023 11:14:47 +0300 Subject: [PATCH] Update angular to version 16 --- .../package.json | 30 +++++++++---------- .../interactivemining/save-profile-guard.ts | 6 ++-- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/interactive-mining-angular-frontend/package.json b/interactive-mining-angular-frontend/package.json index a5d24dc..7d1335e 100755 --- a/interactive-mining-angular-frontend/package.json +++ b/interactive-mining-angular-frontend/package.json @@ -13,15 +13,15 @@ }, "private": true, "dependencies": { - "@angular/animations": "^15.2.9", - "@angular/common": "^15.2.9", - "@angular/compiler": "^15.2.9", - "@angular/core": "^15.2.9", - "@angular/forms": "^15.2.9", - "@angular/localize": "^15.2.9", - "@angular/platform-browser": "^15.2.9", - "@angular/platform-browser-dynamic": "^15.2.9", - "@angular/router": "^15.2.9", + "@angular/animations": "^16.1.8", + "@angular/common": "^16.1.8", + "@angular/compiler": "^16.1.8", + "@angular/core": "^16.1.8", + "@angular/forms": "^16.1.8", + "@angular/localize": "^16.1.8", + "@angular/platform-browser": "^16.1.8", + "@angular/platform-browser-dynamic": "^16.1.8", + "@angular/router": "^16.1.8", "core-js": "^2.4.1", "file-saver": "^2.0.2", "jquery": "^3.4.1", @@ -33,10 +33,10 @@ "zone.js": "~0.13.1" }, "devDependencies": { - "@angular-devkit/build-angular": "^15.2.9", - "@angular/cli": "^15.2.9", - "@angular/compiler-cli": "^15.2.9", - "@angular/language-service": "^15.2.9", + "@angular-devkit/build-angular": "^16.1.7", + "@angular/cli": "^16.1.7", + "@angular/compiler-cli": "^16.1.8", + "@angular/language-service": "^16.1.8", "@types/file-saver": "^2.0.1", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.6", @@ -50,9 +50,9 @@ "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.6.0", - "ng-packagr": "^15.2.2", + "ng-packagr": "^16.1.0", "protractor": "~7.0.0", "ts-node": "~8.2.0", "typescript": "~4.9.5" } -} +} \ No newline at end of file diff --git a/interactive-mining-angular-frontend/src/app/interactivemining/save-profile-guard.ts b/interactive-mining-angular-frontend/src/app/interactivemining/save-profile-guard.ts index 61d3c16..934ed4f 100755 --- a/interactive-mining-angular-frontend/src/app/interactivemining/save-profile-guard.ts +++ b/interactive-mining-angular-frontend/src/app/interactivemining/save-profile-guard.ts @@ -1,10 +1,10 @@ -import {ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot} from '@angular/router'; +import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router'; import { Injectable } from '@angular/core'; import {ConfigurationComponent} from '../configuration/configuration.component'; import {ContentComponent} from '../contents/contents.component'; @Injectable() -export class SaveProfileGuard implements CanDeactivate { +export class SaveProfileGuard { canDeactivate(component: ConfigurationComponent, currentRoute: ActivatedRouteSnapshot, @@ -16,7 +16,7 @@ export class SaveProfileGuard implements CanDeactivate { } @Injectable() -export class UploadContentGuard implements CanDeactivate { +export class UploadContentGuard { canDeactivate(component: ContentComponent, currentRoute: ActivatedRouteSnapshot,