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

4x4 Matrix in Python -

python - String indices must be integers and while issue -

wso2is - WSO2 IS 5.0.0 SP1 After restart there is authentication error -