DEV Community

Cover image for Should .ng component authoring format get dropped? 😱

Should .ng component authoring format get dropped? 😱

Tomasz Ducin on January 26, 2024

There's been quite some fire around the .ng component authoring format, introduced as experimental in AnalogJS meta-framework. You can listen more ...
Collapse
 
alaindet profile image
Alain D'Ettorre

That's a heated debate. I personally respect the work of Brandon, but I honestly believe the .ng is not the way to go for Angular, for two simple reasons

  • It is a radically different and yet not official syntax, meaning it would be dropped by the market anyway to avoid the risk of fragmentation
  • It forces people to migrate existing code and to be as concise as possible, given everything is in one file like Vue and Svelte. Although having short code is important, even for short components I like to have separate files for HTML and TypeScript in order to easily navigate them, like many Angular devs
Collapse
 
draylegend profile image
Vladimir Drayling

I prefer .analog - it refers to analogjs and not to angular's "functionality"