Using Namespaces
Namespaces are simply named JavaScript objects in the global namespace. This makes namespaces a very simple construct to use. They can span multiple files, and can be concatenated using --outFile
. Namespaces can be a good way to structure your code in a Web Application, with all dependencies included as <script>
tags in your HTML page.
Just like all global namespace pollution, it can be hard to identify component dependencies, especially in a large application.
Please login to continue.