Roy

Atlanta, GA

fws.gov/southeast/rioloco

Age: 25

I'm a GIS Specialist with the US Fish and Wildlife Service in Atlanta, GA.

Latest Projects:

http://www.fws.gov/southeast/rioloco/ https://github.com/rhewitt22/RioLoco https://github.com/rhewitt22/FishSamplingScripts

1d
comment How can I process the response from $http, return a promise and bind to the result in AngularJS?
I agree about being explicit with .then. All I'm really after here is the ability to keep the logic of parsing the response from the API in the service rather than in the controller.
1d
accepted How can I process the response from $http, return a promise and bind to the result in AngularJS?
1d
comment How can I process the response from $http, return a promise and bind to the result in AngularJS?
I think returning the empty array, then populating it when the promise is fulfilled is exactly what I'm looking for. Could you give an example? I tried to implement this, but all I'm getting is the empty array -- nothing is populating from the API call
1d
awarded Autobiographer
1d
comment How can I process the response from $http, return a promise and bind to the result in AngularJS?
But I like magic! Can the old pattern be replicated with $resource in Angular 1.2?
1d
asked How can I process the response from $http, return a promise and bind to the result in AngularJS?
Apr
16
revised Angularjs + karma many controllers in module MainCtrl
Corrected code formatting
Apr
14
accepted Multiple JSONP XHR requests in AngularJS failing
Apr
14
answered Multiple JSONP XHR requests in AngularJS failing
Apr
8
revised Multiple JSONP XHR requests in AngularJS failing
Question if the content-type is causing the JSONP call to fail
Apr
8
revised Multiple JSONP XHR requests in AngularJS failing
added 279 characters in body
Apr
8
comment Multiple JSONP XHR requests in AngularJS failing
I'm relatively new to ajax requests, so forgive my ignorance. Why can't I get a hold of the response object in this case?
Apr
8
asked Multiple JSONP XHR requests in AngularJS failing
Apr
1
comment AngularJS: $http success callback
I get the sense that as an Angular best practice you should keep your Logic in the Controller, and DOM manipulation in Directives leaning on ng-if only when you need to.
Mar
23
awarded Notable Question
Mar
19
awarded Popular Question
Mar
18
comment Uncaught SyntaxError: Unexpected token <, when calling angularJS $http.jsonp
A species can have any number of different common names so using an ID is really the only way to guarantee you get data on the species you intended. I spoke with one of IUCN's IT professionals about a more modern api, but I'm waiting to hear back.
Mar
17
accepted Uncaught SyntaxError: Unexpected token <, when calling angularJS $http.jsonp
Mar
17
comment Uncaught SyntaxError: Unexpected token <, when calling angularJS $http.jsonp
Success! Not sure how I missed that section. I updated the URL to hit the heroku app and added ?callback=JSON_CALLBACK. The API is now returning an object containing the HTML document, which doesn't look like much fun to work with, but it's an improvement! Example URL: 'http://iucn-redlist-api.heroku.com/details/' + $routeParams.iucn + '/0.js?callback=JSON_CALLBACK'
Mar
17
comment Uncaught SyntaxError: Unexpected token <, when calling angularJS $http.jsonp
This is the only other thing I was able to wrestle up. It seems like they re-wrote the output to create a more semantic response. I guess I'll have to track someone down within their organization; thanks.
1 2 3 4 5