Advertisement
Guest User

Angular and Coffee(my first time using coffee)

a guest
Apr 27th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   $scope.addUser = (userId,chatroomId)->
  2.     data = {user_id: userId, chatroom_id: chatroomId}
  3.     $http.post(chatroomId + "/memberships", data).then (response) ->
  4.       userData = response.data.user
  5.       console.log userData
  6.       $('#' + userData.id + '-add-member').parent().remove()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement