February 2019
Beginner
694 pages
18h 4m
English
So what is a module? Essentially, a module is a separate TypeScript file that exposes classes, interfaces, or functions for reuse in other parts of the project. Creating modules helps to structure your code files into logical groups. As your application becomes larger and larger, it makes sense to have each of your Models, Views, Controllers, helper functions, and so on, in separate source files, so that they can be easily found.
Consider the following directory tree:

In this project structure, we have a separate directory for controllers, models, utils, and views. Within each of these directories, we have several files. Each ...
Read now
Unlock full access