Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model doesn't update when directive is in modal #31

Open
vhoxha08 opened this issue Mar 27, 2016 · 1 comment
Open

Model doesn't update when directive is in modal #31

vhoxha08 opened this issue Mar 27, 2016 · 1 comment

Comments

@vhoxha08
Copy link

Model doesn't update when directive is in modal. Initially the stars are set but when you change it the model doesn't update with the new value.

@K1pavic
Copy link

K1pavic commented Nov 27, 2016

I think your implementation of the modal and/or the directive went somehow wrong. I tried to reproduce this scenario, but wasn't able to.

Some of the following could be the problem:

  1. You didn't used the same scope for the modal and your template.
  2. You didn't found (logged out) the right value. The up to date value of the rating is under $scope.rating.rate

This is an example modal which is working just fine (scope: $scope):

$ionicModal.fromTemplateUrl('../templates/modal.html', { scope: $scope, animation: 'slide-in-up' }).then(function(modal) { $scope.modal = modal; });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants