Skip to content

Refresh data in Modal #6332

@johnmara

Description

@johnmara

I have created an ion-modal which contains some replies. The user has the option to add a reply and send it to the server.
I want the $scope.replies to be updated with the new reply.

newReply.$save(newReply, function(data){
      $scope.refreshData();

    }, function(error){
           //code
      }
    })

refreshData() actually works and when I close the modal and open it again I can see the new reply.
But I want it to be done automatically. Also doesn't update the data.
Any help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions