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

Angular <3 APIs

Angular <3 APIs

Meetup AngularJS Paris #8

53d87cec9fec3602638fafeaf79b9c96?s=128

David Nowinsky

February 24, 2014
Tweet

Transcript

  1. Angular <3 APIs Ces deux là sont faits pour s’entendre

    Meetup AngularJS Paris #8 24 février 2014
  2. Bonsoir David Nowinsky @davinov

  3. Un soir, chez un ami...

  4. Un soir, chez un ami... Automate / serveur web http://admin:password@chez.mon.

    ami/WRITEPI?ADR1=MX0. 1&VALUE1=1&FORMAT1=%d http://admin:password@chez.mon. ami/WRITEPI?ADR1=MX0. 2&VALUE1=1&FORMAT1=%d
  5. Un soir, chez un ami... 2h plus tard... Automate /

    serveur web http://admin:password@chez.mon. ami/WRITEPI?ADR1=MX0. 1&VALUE1=1&FORMAT1=%d http://admin:password@chez.mon. ami/WRITEPI?ADR1=MX0. 2&VALUE1=1&FORMAT1=%d
  6. Constat #1 KISS Keep it simple, stupid

  7. Constat #1 KISS Keep it simple, stupid light-button(light-id="0", light-label="Couloir") light-button(light-id="1",

    light-label="Salon") light-button(light-id="2", light-label="Cuisine") light-button(light-id="3", light-label="Plan de travail") light-button(light-id="4", light-label="Salle de bain")
  8. Constat #2 DRY Don’t Repeat Yourself

  9. Faisons un truc cool

  10. Faisons un truc kewl

  11. Objectif 15 minutes boilerplate HQ user-friendly API-friendly dev-friendly

  12. GO

  13. Okay ! $resource httpInterceptors authentication

  14. Okay ! $resource httpInterceptors authentication modules ngAnimate

  15. Merci David Nowinsky @davinov github.com/davinov/kewl davinov.github.io/kewl