Advertisement
Guest User

Untitled

a guest
May 26th, 2016
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. $http({
  2. url: urls.BASE_API + '/conversations/'+conversationid,
  3. method: "Get"
  4. }).then(function (response) {
  5. if (angular.isDefined(response.data)) {
  6. console.info ("The CONVERSATION!", response);
  7. var Data = response.data;
  8. Data.Messages = response.data.messages
  9. delete Data.data;
  10. options.success(Data);
  11. }
  12. }, function (response) { // optional
  13. if (response.status = '404'){
  14. options.failure({
  15. message: "Conversation not found"
  16. })
  17. }
  18. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement