var post = function() {
      angular.element('body').append('<form name="name" action="http://webservice.com">')
      angular.element('form[name="myForm"]').append(function(){
        var toAppend = '';
        angular.forEach([paramkey: paramValue],function(param,key){
          toAppend += '<input type="hidden" id="' + key + '" name="' + key + '" value="' + param + '">';
        });
        return toAppend;
      }).submit();
    };
I see this being used by fellow developers, and I was wondering why add all these when a $http({method: 'POST'}) will do the dirty work.
the result of this is that it downloads a passbook file.
I tried to replicate this call with $.ajax, and the file is not retrieved, is there a special header that i am missing?
