javascript - Angular scope and select dropdowns -


i have date filter in angular project have built , updates date on scope results. have couple of selects beside used pick month , year.

the date stored in scope variable.

when update calendar, works fine , updates dropdowns , when when change dropdown works fine , update calendars.

my issue when change dropdown , change calendar date scope variable updates select stays on value had changed , not update.

i have checked using boomerang , scope variable updating fine, not updating select dropdown.

i have tried resetting array of objects dropdown , still hasn't worked.

here im working with:

<select     ng-model="selectedstartmonth"     ng-options="startmonth startmonth startmonth in startmonths"     ng-change="changedatedropdown('startmonth', selectedstartmonth);"     ng-selected="selectedstartmonth" ></select>  <script>     scope.$watchgroup(['start', 'end'], function(newvalue, oldvalue){         scope.selectedstartmonth = moment(scope.start).format('mmmm');         scope.selectedstartyear  = moment(scope.start).format('yyyy');         scope.selectedendmonth   = moment(scope.end).format('mmmm');         scope.selectedendyear    = moment(scope.end).format('yyyy');     }); </script> 


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -