ion-datetime-picker icon indicating copy to clipboard operation
ion-datetime-picker copied to clipboard

problem about reloading the datetime picker

Open hix41 opened this issue 7 years ago • 3 comments

Hi, I am using a cordova-plugin-translate to change the datetime-picker language dynamically. And I change the context in app.js following the documentation of ion-datetime-picker.However,I need to refresh the view to reload the datetime-picker popup to reload the new context that changed by cordova-plugin-translate.Now, the problem is that, I don't know how to reload the popup. Please tell me what to do. THX!

hix41 avatar Sep 27 '17 02:09 hix41

Or, is there any way to refresh the datetime picker popup everytime it shows?

hix41 avatar Sep 27 '17 03:09 hix41

Hi, it should reload automatically everytime the popup is shown.

katemihalikova avatar Sep 27 '17 07:09 katemihalikova

It wolud not reload everytime the popup is shown. So I put the code (about translate) in its own controller instead of in app.js . And it solve my problem successfully. THX!

hix41 avatar Sep 27 '17 07:09 hix41