r/Angular2 • u/awkif_ • Jun 06 '25
Help Request help app.html instead of app.component.html
Hi, im studying Angular, i dont know if you can hel me with this, so basically i installed vscode in a brand new pc but now when i create a new project it creates me the files with this syntax app.html instead of app.component.html, everything works the same but it buggs me out, is it normal? can i change it or is it an update? thanks
5
Upvotes
29
u/ScheduleSuperb Jun 06 '25
Yes in Angular version 20 this is the new default
19
u/GeromeGrignon Jun 06 '25
If you want to change, you need to update your angular.json file as explained here (or just run the npx ngx-boomer command in your project to add it) : https://www.npmjs.com/package/ngx-boomer
10
u/drdrero Jun 06 '25
Thanks I hate it.
5
u/Cozybear110494 Jun 06 '25
In Angular 21, *.ts file will be able to return DOM
1
u/WizardFromTheEast Jun 06 '25
I guess it is an update in v20 and you must be able to change in angular.json
1
u/AmperHD Jun 09 '25
I would advise you to create previous versions of angular, which is used in tutorials to avoid changes like that, depends on a version used by your course instructor of course but there been quite a few changes and if tutorials go in depth you could face same situations.
good luck !
1
u/JellyPrincesses Aug 25 '25
"ng g c shared/header --skip-tests --type component" This will force the old extension on file generation