O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modules

TypeScript also supports modules. As we deal with a large number of external JavaScript libraries, this module will really help us refer and organize our code. Using the import statement, we can import external modules, as illustrated:

Import { inv } from "./Inventory"; var p = new inv.Product('mobile', 101); 

Here, we just imported the previously created module, Inventory, and created an instance of Product assigned to the p variable.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required