December 2017
Beginner
372 pages
10h 32m
English
TypeScript modules are an extension of the ES5 modules that we have in JavaScript. They serve the same purpose as namespaces, that is, to provide an opportunity to manage the code in a more modular fashion and prevent naming conflicts. We have been using modules since our first application. One of the biggest advantages of using modules instead of namespaces is that they allow us to use modular loaders to provide asynchronous behavior for loading the JavaScript file and hence speed up the application flow. There are multiple module loaders available and they differ from each other mainly in terms of syntax and how they manage the modules.
Read now
Unlock full access