Home Page
About Us


The Asynchronous Module Definition (AMD) API specifies a mechanism for defining modules such that the module and its dependencies can be asynchronously loaded


Universal Module Definition (UMD) is an API for JavaScript modules that are capable of working in browsers, on the server, or elsewhere.



Umd is even better supported since umd is compatible with commonjs and amd so that would be a safer bet

from question  

Writing an Angular library, is it safe to assume users will use commonjs?

The main diferrence between the two is that umd is more abstract and will also work in node.js and amd rather than just browsers

from question  

Trying to understand what this JS function does and what its parameters are, can someone explain?

Back to Home
Data comes from Stack Exchange with CC-BY-SA-4.0