Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $http({
- url: urls.BASE_API + '/conversations/'+conversationid,
- method: "Get"
- }).then(function (response) {
- if (angular.isDefined(response.data)) {
- console.info ("The CONVERSATION!", response);
- var Data = response.data;
- Data.Messages = response.data.messages
- delete Data.data;
- options.success(Data);
- }
- }, function (response) { // optional
- if (response.status = '404'){
- options.failure({
- message: "Conversation not found"
- })
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement