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

AMD with RequireJS

AMD with RequireJS

Another brown bag on AMD concepts and RequireJS

Matthew Osborn

June 29, 2015

Transcript

9 slides
  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  

More Decks by Matthew Osborn

Other Decks in Technology