Async

posted in: AngularJS, JavaScript | 1

This is a great how to guide: http://www.sebastianseilund.com/nodejs-async-in-practice   How do I wait for a number of API calls to complete with their response data before proceeding?   Use Async – https://github.com/caolan/async   In this example “renderListGroup()” will only fire when all … Continued

CORS headers [team]

posted in: AngularJS, API | 0

The CORS headers which worked for me on PHP Apache and Chrome are: header(“Access-Control-Allow-Origin: {$_SERVER[‘HTTP_ORIGIN’]}”); header(‘Access-Control-Allow-Credentials: true’); header(‘Access-Control-Max-Age: 0’); header(“Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS”); header(“Access-Control-Allow-Headers: {$_SERVER[‘HTTP_ACCESS_CONTROL_REQUEST_HEADERS’]}”); For every POST, PUT, DELETE there are 2 requests (if you don’t cache … Continued

Loopback – Sync local and remote data [team]

posted in: AngularJS, API, Architecture, MongoDB, SQL | 0

http://strongloop.com/strongblog/node-js-api-offline-sync-replication/  https://github.com/strongloop/loopback-example-full-stack Introducing Loopback LoopBack  is an open source Node.js API framework from StrongLoop that provides out of box offline synchronization using isomorphic JavaScript. For data replication it uses model-based data persistence. This functionality is available for client side Angularjs and … Continued

AngularJS’ Internals In Depth [team]

posted in: AngularJS | 0

AngularJS presents a remarkable number of interesting design choices in its code base. Two particularly interesting cases are the way in which scopes work and how directives behave. http://www.smashingmagazine.com/2015/01/22/angularjs-internals-in-depth/

1 2 3 4 5 6 10