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

Models and Rest APIs on AngularJS with Restangular

Models and Rest APIs on AngularJS with Restangular

AngularJS has been attracting a lot of attention lately and most Angular applications need to have models and communicate to a Rest API. However, AngularJS is not opinionated at all regarding models since they are simple POJSOs (Plain Old JS Objects).

The main intention of this talk is to show by example how to create models with fields and behaviour on JS that are gotten from a Rest API very with the help of Restangular, which allows us to handle models relations, extended state and behaviour in a very elegant way. I'm also going to compare this approach to working with $resource.

Martin Gontovnikas

April 27, 2014
Tweet

More Decks by Martin Gontovnikas

Other Decks in Programming

Transcript