How it works...

The difference between a package and a module is as follows: a module contains a single JavaScript file that has certain functionalities. A package is a directory that contains several modules with a metadata file for each package. This metadata file will be a package.json file that is used to create scripts and track dependencies.

We will find this file at the root of the ASP.NET Core projects. It will list the node packages used in our applications.

Asynchronous module definition (AMD) is a concept or pattern that is used to provide a solution to create modular code in several JavaScript files and load them separately and asynchronously, even if they are interdependent.

Get ASP.NET Core MVC 2.0 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.