ion-datetime-picker
ion-datetime-picker copied to clipboard
problem about reloading the datetime picker
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!
Or, is there any way to refresh the datetime picker popup everytime it shows?
Hi, it should reload automatically everytime the popup is shown.
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!