Skip to content

Instantly share code, notes, and snippets.

@jongravois
Created January 5, 2015 23:26
Show Gist options
  • Save jongravois/2a5377bec2eedc29c888 to your computer and use it in GitHub Desktop.
Save jongravois/2a5377bec2eedc29c888 to your computer and use it in GitHub Desktop.
This -- returns -- that
return LoansFactory.getLoan($stateParams.loanID)
.then(function(data) {
console.log(data);
return data;
});
Object {data: Object, status: 200, headers: function, config: Object, statusText: "OK"}config: Objectcached: falseheaders: Objectmethod: "GET"transformRequest: Array[1]transformResponse: Array[1]url: "http://www.lenda.local:6500/api/loans/10"__proto__: Objectdata: Objectdata: Objectaccount_classification: 0added_land: falseadded_land_verified: 0analyst: Objectaoi_received: 0app_date: "01/05/2015"applicant: nullapplicant_id: nullarm_approved: 0arm_balance: 0arm_ucc_received: 0attachments: falsebankruptcy_history: falsebankruptcy_order_received: 0ccc_received: 0comments: Array[0]committee: Array[0]conditions: Objectcontrolled_disbursement: falsecorporations: Array[0]crop_inspection: 0crop_year: "2015"crops: Array[8]decision_date: nulldist_approved: 0dist_ucc_received: 0distributor: nulldistributor_id: nulldue_date: "12/15/2015"entity_type: nullentity_type_id: nullfarmer: nullfarmer_id: 0fins: Objectfsa_compliant: 0has_addendum: falsehas_distributor: falseid: "10"is_active: trueis_cross_collateralized: falseis_fast_tracked: falseis_stale: falseits_list: 0last_activity: Objectleases_valid: 0limit_warning: 0loan_closed: 0loan_closed_date: nullloan_days: 344loan_type: "Ag-Input"loan_type_id: "2"loc_abr: "MEM"loc_id: "5"partners: Array[0]prev_lien_verified: 0rebate_assignment: 0received_3party: 0recommended: 0reconcilliation: 0region: "East"region_id: "1"required_3party: falseseason: "S"season_full: "Spring"status: "In-Progress"status_id: "1"user_id: "2"ventures: Array[0]__proto__: Object__proto__: Objectheaders: function (c){a||status: 200statusText: "OK"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment