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:
<div ng-controller="timepickerdemoctrl">
not wrapped whole stuffng-submit
changedng-click
- as
urbantimerange
array should use$watchcollection
instead of$watch
look @ corrected variant.
Comments
Post a Comment