Return to site

🅰️1️⃣7️⃣ Angular 17 migration command

· angular,frontend

There is an automated Angular CLI migration command available if you want to replace the legacy syntax automatically: ng g @angular/core:control-flow

A) True, the command will migrate all the templates in your project to use the new @-syntax for control flow statements.

B) False, the command will only migrate the templates in the current directory to use the new @-syntax for control flow statements.

C) True, the command will migrate all the templates in your project to use the new @-syntax for control flow statements, but you can also specify a specific file or folder as an argument.

D) False, there is no such command available in Angular CLI.

#angular #angular17 #programming #migration #command

The correct answer is C. The ng g @angular/core:control-flow command is an automated Angular CLI migration command that will replace the legacy syntax with the new @-syntax for control flow statements in your templates. The command will migrate all the templates in your project by default, but you can also specify a specific file or folder as an argument if you want to migrate only a subset of your templates. The other options are either incorrect or incomplete.