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

AppliedJS Meetup @ Zalando

AppliedJS Meetup @ Zalando

Some tips & tricks for Angularjs Beginners

miganga

April 24, 2015
Tweet

Other Decks in Programming

Transcript

  1. Is angularjs really worth the effort? •  Fast coding, prototyping,

    solidify ideas •  Organization •  Easy api integration •  Test oriented •  Easily extendible •  It’s popular [email protected]  
  2. [email protected]   { "menu": [ { "name": "First Link", "icon":

    "fa fa-connectdevelop" }, { "name": "Second Link", "icon": "fa fa-fire-extinguisher" }, { "name": "Third Link", "icon": "fa fa-frown-o" } ] } Step  1  
  3. [email protected]   Angularjs  app   controller  scope  as   mc

     not  $scope   Repea<ng  the  same   element  
  4. Creating an angularjs code base from json [email protected]   All

     in  one  file,  compressed,  etc.    Doesn’t  change   oIen   We  need  an  array  
  5. Use json as a source in gulp… [email protected]   Reading

     the  array  file  and  processing   all  files  
  6. Now let’s try to keep our base file very lean.

    [email protected]   Then  how  do  we  handle  all  other  files  we  need  just  for  some  routes?  
  7. Using $q - $q.all var deferred1 = $q.defer() , promise1

    = deferred1.promise, deferred2 = $q.defer(), promise2 = deferred2.promise; $q.all([promise1, promise2]).then(x); [email protected]  
  8. Little about me before Q&A Ziya Aktas •  From Turkey,

    coming from San Francisco •  Love Berlin J •  New media & design background, then javascript & user experience design interests •  Currently working @ business.itembase.com •  Passionate about community development [email protected]  
  9. Q & A, and the rest •  http://www.meetup.com/appliedJavascript/ •  We

    have ticket discounts for Jsconf in Budapest, ask me for more info and there is a document shared in meetup website •  Next meetup is possibly about cloud applications of node.js apps. •  If you want to talk, please message me! [email protected] or meetup.com [email protected]