Emulating Tree-shakable Components Using Single Component Angular Modules

added by JavaScript Kicks
6/24/2019 7:06:42 AM

348 Views

SCAMs (Single Component Angular Modules) can emulate tree-shakable components by having an Angular module only be concerned about declaring and exporting a single component. A SCAM instructs the Angular compiler to link declarable dependencies (components, directives, and pipes used in a component template) to its component template by importing other SCAMs and fine-graned third party Angular modules.


0 comments