What is the best way to migrate Angular application from v 13 to 21

1 day ago 3
ARTICLE AD BOX

What is the best way to migrate an Angular application from v 13 to 21

1. Create a New app with v 21 with all the updated packages

2. Migrate the application from one version to another

And what are the pros of that ption?

And this is the package.json file for my project

{ "dependencies": { "@angular/animations": "^13.0.0", "@angular/cdk": "^13.0.0", "@angular/cli": "^13.0.0", "@angular/common": "^13.0.0", "@angular/compiler": "^13.0.0", "@angular/core": "^13.0.0", "@angular/forms": "^13.0.0", "@angular/localize": "^13.0.0", "@angular/material": "^13.0.0", "@angular/platform-browser": "^13.0.0", "@angular/platform-browser-dynamic": "^13.0.0", "@angular/router": "^13.0.0", "@ngneat/until-destroy": "^10.0.0-beta.0", "d3": "^7.5.0", "js-yaml": "^4.1.0", "markdown-it": "^13.0.1", "rxjs": "~7.5.0", "tslib": "^2.8.1", "xlsx": "^0.18.5", "yamljs": "^0.3.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "^13.0.0", "@angular-eslint/builder": "^13.0.0", "@angular-eslint/eslint-plugin": "^13.0.0", "@angular-eslint/eslint-plugin-template": "^13.0.0", "@angular-eslint/schematics": "^13.0.0", "@angular-eslint/template-parser": "^13.0.0", "@angular/compiler-cli": "^13.0.0", "@types/d3": "^7.4.0", "@types/jasmine": "~3.10.0", "@types/js-yaml": "^4.0.9", "@types/markdown-it": "^12.2.3", "@types/node": "^12.11.1", "@types/yamljs": "^0.2.31", "@typescript-eslint/eslint-plugin": "5.27.1", "@typescript-eslint/parser": "5.27.1", "eslint": "^8.17.0", "eslint-config-prettier": "^8.5.0", "eslint-config-standard-with-typescript": "^22.0.0", "eslint-plugin-import": "^2.26.0", "eslint-plugin-n": "^15.2.5", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-promise": "^6.0.1", "jasmine-core": "~4.0.0", "karma": "~6.3.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.2.1", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "~1.7.0", "prettier": "^2.7.1", "prettier-eslint": "^15.0.1", "qs": "^6.11.0", "typescript": "^4.6.4" }, }
Read Entire Article