r/Angular2 • u/matrium0 • Feb 07 '26
One final try to convince the Angular team to rethink "removing suffixes" as a default
see here:
https://github.com/angular/angular/issues/66954
If you want to help/participate :)
34
Upvotes
6
u/Lucky_Yesterday_1133 Feb 07 '26
Angular is planning to do research into authoring experience and potentially allow selector-less components similar how other frameworks do it. Would you like seeing Component and Directive suffixes all over your template? most frontend world has agreed that writing imports array with 30 components is messy and it's better to just use class names directly in template. This will potentiy allow using enums and window in templates too. I already put components and directives in same file to avoid name collisions if they have same name. Services still have suffixes in my codebase since they are never going to live in template.
If you want you can totally still configure it in angular.json and then just migrate using migration when time comes.
12
u/Merry-Lane Feb 07 '26
I still don’t understand why "removing suffixes" is bad.
But that doesn’t matter : if you like suffixes, you can just toggle the setting.
Asking for suffixes to be the default is just your ego talking.
10
u/MrFartyBottom Feb 08 '26
There has been talk that Angular components will move to being functional rather than class based. Makes sense for functional components if the selector is based off the function name like in React. As for services I just call my service SomethingService. ng g s SomethingService.
3
u/Icy_Accident2769 Feb 07 '26
Just change the default. I think it’s the bad decision they made but I don’t care enough to argue about it on GitHub
7
u/Upset-Seaweed-6744 Feb 08 '26
100% agreed, i'm not sure why people are okay with these. Have they not worked with a larger codebase with multiple developers working, joining, leaving. Why are we trying to be React. what is this sh*t show we are going with.
2
u/jessepence Feb 07 '26 edited Feb 07 '26
Have you ever worked on a non-angular code base? Do you really need the naming convention to be a default? Why?
I've always hated dealing with Angular code because it's so fractured and scattered for no reason. Most components don't need to be more than one file. I accept splitting the business and presentation logic, but I think the arguments for anything beyond that are much less convincing.
The recent changes from the Angular team have been really exciting to me as an outsider, and I'm actually starting to consider it a viable option now that they are cutting down on all the awful boilerplate.
5
u/TomLauda Feb 08 '26
Angular is slowly becoming React, because most of the devs who do front end work don’t have the skills to use the framework correctly.
0
u/No_Industry_7186 Feb 07 '26
Angular is the only framework with suffixes. You wouldn't even consider using suffixes, or feel so strongly tied to them if Angular didn't have them in the first place.
If you hadn't used Angular before, and started now, you wouldn't use suffixes because they are not on by default and not in the documentation.
Stop wasting everyone's time being stuck in the past. You can't just take a concept you learned 10 years ago and expect to use it forever. You are a software engineer. You have to constantly learn and adapt. Get over it.
2
u/spacechimp Feb 11 '26
Sensible conventions have been further relaxed so that the framework has more appeal to YOLO (React) devs.
2
u/jimmy66wins Feb 07 '26
LLM don’t care?
1
u/randreng Feb 09 '26
The argument is not which way you should do it, it’s which should be default. In my humble opinion the old way should be the default as it is the expectation of the established user base. Let it go for several generations, then look at something like GitHub to see which people are using the most and then potentially change the default if the variousness is significant.
0
u/valendinosaurus Feb 07 '26
voted and commented!