Get a snapshot of current good practices from different Angular projects across Zühlke
Each Angular components has to be part of a module*.
The scale goes from one module for the entire project to «SCAM» (single component Angular modules).
Modules are essential for code splitting as they can be lazy-loaded.
* we'll ignore the new standalone components for today
Besides components, Angular has directives and the concept of (singleton) services that can be injected.
But you can also import functions from JS modules.
More complex applications might need a state managment library.
Directives were the way of AngularJS but have since gone out of fashion.
Angular comes with a TesteBed to setup the unit under test and interact with the template.
Alternatively you can just test the component class without DOM.
E2E tests usually complement the setup to varying degrees.
Have a wonderful Zühlke Day