javascript - Refreshing datetimepicker in angular -


i'm using http://dalelotts.github.io/angular-bootstrap-datetimepicker/

i'm i18ning site. after selecting language i'm changing date using moment.js. this:

  $scope.changelanguage = function (key) {         $translate.use(key);         moment.locale(key);      }; 

and here's problem: dates in calendar changing after use first time (select date/change month etc).

it's because of refreshing first time.

how can manually refresh datetimepicker in code? (ex: in section quote)

with latest release can fire event have re-render.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -

java - How can I send the data from a imput type="file" to the controller? -