Upgrade to Pro — share decks privately, control downloads, hide ads and more …

AMD with RequireJS

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.

AMD with RequireJS

Another brown bag on AMD concepts and RequireJS

Avatar for Matthew Osborn

Matthew Osborn

June 29, 2015

More Decks by Matthew Osborn

Other Decks in Technology

Transcript

  1. define("person",  [],  func2on  ()  {          return

     {  firstName:  "",  lastName:  ""  };   })     define("employee",  ["person"],  func2on  (p)  {          return  {  base:  p,  id:  "123"  };   });  
  2. // person.js   define([],  func2on  ()  {      

       return  {  firstName:  "",  lastName:  ""  };   })   // employee.js   define(["person"],  func2on  (p)  {          return  {  base:  p,  id:  "123"  };   });  
  3. DEMO Setup  &  Consump2on   r.js  &  Building  /  Minifica2on

      Typescript  AMD  PaQerns   Control’s  conversion  to   AMD