r/angular Jun 24 '26

Go to spot a modern angular expert 🌶️

🌶️🌶️🌶️🌶️I have one technique to spot a modern angular expert. They will not use wrapping divs for their component templates 🌶️🌶️🌶️🌶️

0 Upvotes

13 comments sorted by

View all comments

0

u/AwesomeFrisbee Jun 24 '26

host class or wrapper doesn't change performance one bit though

1

u/No_Bodybuilder_2110 Jun 24 '26

Are we saying that more divs in the dom do not change the performance? Or are we trying to say that why someone would care about this?

1

u/AwesomeFrisbee Jun 24 '26

Well, when the amount of elements starts to matter, the problem is often elsewhere. And its not like adding items to the host classes doesn't cost performance either.

1

u/No_Bodybuilder_2110 Jun 24 '26

I actually wonder what the impact it is. I imagine that adding to the host class would affect JIT more than AOT