I'm using this Emberjs template http://www.asp.net/single-page-application/overview/templates/emberjs-template to make an ember application inside asp .net. I have developed some basic web api's using asp.net web api, but how would I call these POST, GET, etc methods from the ember application? i.e. How would I connect my ember controller, models and views to this asp .net back-end?
I blogged this issue over here http://www.emadibrahim.com/2014/04/09/emberjs-and-asp-net-web-api-and-json-serialization/ this works for GETs but working on a custom model binder to make it work for POSTs and PUTs - I will update my answer when done.
Have a look at the Ember.js getting started guide. After you have your application set up, you could use Ember Data to communicate with your back end. If you follow conventions it's as easy as swapping out your adapter for DS.RESTAdapter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With