Catch POST response without model


#1

We not use model. Now we send FETCH and use promise to processing response. How I can catch response without promise? We have many request and I wont have one point to processing response. For this use adapters. But I result, adapters use with model only.

What I can use for catch POST response?

Sorry for my English!


#2

you can use jquery.

Ember.$.post( “localhost:3000/api/v1”, function(response) { console.log(response); }).done(function(){ console.log(‘finished’); });

Hopefully this helps?


#3

No, I should use fetch)


#4

May be I don’t understand you. I thought you offer use it for send request. You offer use it for catch response? In which component I need place this code?