View 0_reuse_code.js
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
View config.js
// This variation just injects the extracted data right into the relationships and also stores things in | |
// ._meta and ._included instead of just .included | |
// it (like restangular) requires either lodash or underscorejs | |
.config(function(RestangularProvider) { | |
// add a response interceptor | |
RestangularProvider.addResponseInterceptor(function(data, operation, what, url, response, deferred) { | |
var extractedData = data.data; |