Skip to main content

Posts

Showing posts with the label Asynchronous Module Definition (AMD) Modules

What Are AMD Modules In RequireJS?

What Is AMD module? The AMD is stands for Asynchronous Module Definition and is used for defining modules and their dependencies with asynchronously manner. Defining Modules  -The Module is defined using define () method and it used for loading the module i.e. define ({    country: "India" ,    state:   "UP" ,    city:   "Noida" ,    userDetail:   function  () {             return   "User Detail" ;     } }); Defining Functions  - A module can also use a function without dependencies i.e. define ( function  () {      return  {          country: "India" ,          state:   "UP" ,          city:   "Noida"     } }); Defining Fun...