© Venkata Keerti Kotaru 2020
V. K. KotaruAngular for Material Designhttps://doi.org/10.1007/978-1-4842-5434-9_3

3. Modules

Venkata Keerti Kotaru1 
(1)
Hyderabad, India
 

This chapter covers module systems in JavaScript and Angular. Modules are important for Angular code organization and the logical groupings of code. Modules also manage dependencies. An application has many files, classes, functions, and so forth. No code works in a silo or without integrating with other code units. A method in a class calls another method, which creates a dependency. A module system manages the dependency tree.

All modern JavaScript applications use a module system introduced in ES6 (also called ES2015). Angular applications use it, too; however, Angular also uses its ...

Get Angular for Material Design: Leverage Angular Material and TypeScript to Build a Rich User Interface for Web Apps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.