Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
2 answers
2k views

Pass $http from Controller to Directive

I need to use $http.get to grab a json file in my controller: module.controller 'SampleMapController', ($http, $scope) -> $http.get('../../highcharts/mapdata/world.geo.json'). success (...
user avatar
3 votes
1 answer
9k views

AngularJS can't send post request with Content-Type:application/json

Currently I am using angularJS and CoffeeScript to try to send a post request, and my sample code is: login: (user, callback)=> baseUrl = 'http://localhost:3000/api/v1/sessions' @$http({ method: ...
Junv's user avatar
  • 530