Skip to content

Refresh data in Modal #6332

Closed
Closed

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?

Activity

  1. danbucholtz commented on Apr 27, 2016

    @danbucholtz
    Contributor

    Hi @johnmara,

    We have an Ionic community/forum where people can ask for help. Please ask your question there. I am going to close this issue since it's a question, not necessarily an issue. Please let me know if I am mistaken.

    Thanks,
    Dan

  2. locked and limited conversation to collaborators on Sep 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions