This guide explains how to update your ThingsBoard Extension when migrating to a newer platform version.
This migration updates the codebase from Angular 18 to Angular 20.
-
Pull the latest changes from the corresponding
release/*branch and install dependencies:yarn install
-
Migrate all components to standalone (converts modules to standalone components):
yarn ng update @angular/core --migrate-only --from=18.0.0 --to=20.3.20
-
Update Angular Material component styles:
yarn ng update @angular/material --migrate-only --from=18.0.0 --to=20.2.14
-
Optional — Update control flow syntax (converts to the new
@if,@for, and@switchblock syntax):yarn ng generate @angular/core:control-flow
After completing the migration, make sure the project builds and runs correctly:
yarn build
yarn start