Angular POST to Web API doesn't pass data

后端 未结 3 1468
一个人的身影
一个人的身影 2021-01-18 15:44

I\'ve been writing code against ASP.NET Web API for a while now with jQuery and I\'m starting something new in Angular (writing against the same Web API backend.)

I\

3条回答
  •  伪装坚强ぢ
    2021-01-18 16:15

    Solved! Discovered this question:

    AngularJs $http.post() does not send data

    Pointing to this lovely article:

    http://victorblog.com/2012/12/20/make-angularjs-http-service-behave-like-jquery-ajax/

    Turns out Angular doesn't post data the same way jQuery does but you can override it with some tweaking.

提交回复
热议问题