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.