Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Besides, the latters share the same concepts of single file components: logic (JavaScript), structure (HTML), and style (CSS) in the same file.

Personally, I hate this.

I currently work on a large Angular 14 (now 15) application that separates the view (HTML) from the logic (TS) and the styling (CSS). So you have essentially 3 files for a component.

I don't understand why some developers love cramming this stuff into the same file. Angular's default style encapsulation prevents component styles from affecting other components.

To each their own, I guess.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: