We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hey,
I was going through my project fixing up any memory leaks and I found one in your project.
$ionicModal.fromTemplateUrl('ionic-datepicker-modal.html', { scope: scope, animation: 'slide-in-up' }).then(function (modal) { scope.modal = modal; });
The modal attached to scope needs to be cleaned up when the scope is destroyed.
scope.$on('$destroy', function() { scope.modal.remove(); });
Just put this below that piece of code and it'll fix the memory leak.
The text was updated successfully, but these errors were encountered:
Thanks for pointing it out @concertcoder
Sorry, something went wrong.
@rajeshwarpatlolla No problem, thanks for the code ;)
Please check the new release v1.0.0. This issue has been addressed.
No branches or pull requests
Hey,
I was going through my project fixing up any memory leaks and I found one in your project.
$ionicModal.fromTemplateUrl('ionic-datepicker-modal.html', {
scope: scope,
animation: 'slide-in-up'
}).then(function (modal) {
scope.modal = modal;
});
The modal attached to scope needs to be cleaned up when the scope is destroyed.
scope.$on('$destroy', function() {
scope.modal.remove();
});
Just put this below that piece of code and it'll fix the memory leak.
The text was updated successfully, but these errors were encountered: