Update angular to version 16

This commit is contained in:
Konstantinos Triantafyllou 2023-08-04 11:14:47 +03:00
parent 0c25b82fa3
commit d123f45d76
2 changed files with 18 additions and 18 deletions

View File

@ -13,15 +13,15 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^15.2.9", "@angular/animations": "^16.1.8",
"@angular/common": "^15.2.9", "@angular/common": "^16.1.8",
"@angular/compiler": "^15.2.9", "@angular/compiler": "^16.1.8",
"@angular/core": "^15.2.9", "@angular/core": "^16.1.8",
"@angular/forms": "^15.2.9", "@angular/forms": "^16.1.8",
"@angular/localize": "^15.2.9", "@angular/localize": "^16.1.8",
"@angular/platform-browser": "^15.2.9", "@angular/platform-browser": "^16.1.8",
"@angular/platform-browser-dynamic": "^15.2.9", "@angular/platform-browser-dynamic": "^16.1.8",
"@angular/router": "^15.2.9", "@angular/router": "^16.1.8",
"core-js": "^2.4.1", "core-js": "^2.4.1",
"file-saver": "^2.0.2", "file-saver": "^2.0.2",
"jquery": "^3.4.1", "jquery": "^3.4.1",
@ -33,10 +33,10 @@
"zone.js": "~0.13.1" "zone.js": "~0.13.1"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^15.2.9", "@angular-devkit/build-angular": "^16.1.7",
"@angular/cli": "^15.2.9", "@angular/cli": "^16.1.7",
"@angular/compiler-cli": "^15.2.9", "@angular/compiler-cli": "^16.1.8",
"@angular/language-service": "^15.2.9", "@angular/language-service": "^16.1.8",
"@types/file-saver": "^2.0.1", "@types/file-saver": "^2.0.1",
"@types/jasmine": "~3.6.0", "@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.6", "@types/jasminewd2": "~2.0.6",
@ -50,9 +50,9 @@
"karma-coverage-istanbul-reporter": "~3.0.2", "karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0", "karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.6.0", "karma-jasmine-html-reporter": "^1.6.0",
"ng-packagr": "^15.2.2", "ng-packagr": "^16.1.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~8.2.0", "ts-node": "~8.2.0",
"typescript": "~4.9.5" "typescript": "~4.9.5"
} }
} }

View File

@ -1,10 +1,10 @@
import {ActivatedRouteSnapshot, CanDeactivate, RouterStateSnapshot} from '@angular/router'; import { ActivatedRouteSnapshot, RouterStateSnapshot } from '@angular/router';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import {ConfigurationComponent} from '../configuration/configuration.component'; import {ConfigurationComponent} from '../configuration/configuration.component';
import {ContentComponent} from '../contents/contents.component'; import {ContentComponent} from '../contents/contents.component';
@Injectable() @Injectable()
export class SaveProfileGuard implements CanDeactivate<ConfigurationComponent> { export class SaveProfileGuard {
canDeactivate(component: ConfigurationComponent, canDeactivate(component: ConfigurationComponent,
currentRoute: ActivatedRouteSnapshot, currentRoute: ActivatedRouteSnapshot,
@ -16,7 +16,7 @@ export class SaveProfileGuard implements CanDeactivate<ConfigurationComponent> {
} }
@Injectable() @Injectable()
export class UploadContentGuard implements CanDeactivate<ContentComponent> { export class UploadContentGuard {
canDeactivate(component: ContentComponent, canDeactivate(component: ContentComponent,
currentRoute: ActivatedRouteSnapshot, currentRoute: ActivatedRouteSnapshot,