TomMakes / salesara-angular

Serving as both a teaching tool as well as reference repo, salesara-angular will be my front end written in Angular.
MIT License
0 stars 0 forks source link

Angular 18 Standalone (Instead of module) Investigation #3

Open TomMakes opened 1 month ago

TomMakes commented 1 month ago

As a developer who started development on Angular 9, I have been always using ngModules to group components and dependencies. After investigation into the differences between Standalone and Modules, I decided it is worthwhile to make the transition to Standalone.

It looks like Standalone will improve tree-shake-ability and reduce some boilerplate code. I hope that it will also made the build times faster as I'll be linking together components less often, as they aren't all packaged in single modules (like with my core-ui components) Reddit discussion around standalone vs modules. Angular's outline of the Standalone API

This issue is to investigate and log what will be different in my development now that I am switching over to using standalone components, directives, and pipes.

TomMakes commented 1 month ago

A brief overview on how to use components now in Standalone mode.

TomMakes commented 1 month ago

A description of how services are now used by components.