AngularJS & Restangular
Restangular.js
(https://github.com/mgonto/restangular)
Restangular.js is a replacement for Angular's $http and $resource services.
Restangular
is an AngularJS service that simplifies common GET, DELETE, and UPDATE
requests with a minimum of client code. Good for any WebApp that
consumes data from a RESTful API.
Restangular.js - nested models, decorate, mixinto() method
identity mapping (like a dictionary in C#),
getter - uniform access model (both seem like property or method regardless what it really is)
memoization - addresses performance - repeat if calculated it in the past
watch expressions should not take long in Angular. to prevent recalc over one watch cycle.
unmemoization -
computed properties - only recompute if its dependant properties changes.
Comments
Post a Comment