This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which of the following is possible when using namespaces, but not when using modules?
Designate a component as available outside of the scope of the namespace using the export keyword.
export
Compile multiple TypeScript files into a single JavaScript file.
Declaring dependencies.
How do you use use a component from one module file in another module file?
Use the import keyword.
import
Use a reference statement.
reference
Prepend the module name to the component name.
What is the recommended code-organizing mechanism for new ES6-compliant projects?
Namespaces.
It doesn't matter which one you choose.
Modules.
You must answer all questions before checking your work.
Was this page helpful?