javascript - Getting new data in DOM without refresh -


i have page add time range, on button insert & save send data api , response set data table. problem is, data not showing dynamically. need refresh page see changes. try use $watch, not working or doing wrong. here plunker.

you made mistakes:

  1. <div ng-controller="timepickerdemoctrl"> not wrapped whole stuff
  2. ng-submit changed ng-click
  3. as urbantimerange array should use $watchcollection instead of $watch

look @ corrected variant.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -