1. 25 Jul, 2017 1 commit
    • Add opts.skipDigest for DataService.watch · 3b37289a
      - provides mechanism to keep WebSockets from spamming the $digest loop
      - flips invokeApply passed to the internal $timeout calls,
        stopping a $digest loop & avoiding a render.
      - DataService._watchOpOnMessage also honors the skipDigest flag,
        which is plumbed down through .watch() -> .startListOp -> ._listOpComplete -> ._startWatchOp -> ._watchOpOnMessage
      
      example usage:
      
      DataService.watch(resource, context, (data) => {
        // optionally call $applyAsync here in controlling code
        // to manually run a $digest
        $scope.$applyAsync(() => {
         // do stuff with data here
        });
      }, { skipDigest: true });
      
      // or Debounce
      DataService.watch(resource, context, _.debounce(() => {
       // $apply here, inside debounce
      }, 400), { skipDigest: true });
      benjaminapetersen committed
  2. 21 Jul, 2017 3 commits
  3. 12 Jul, 2017 1 commit
  4. 07 Jul, 2017 1 commit
  5. 06 Jul, 2017 1 commit
  6. 30 Jun, 2017 3 commits
  7. 29 Jun, 2017 4 commits
  8. 28 Jun, 2017 4 commits
  9. 27 Jun, 2017 4 commits
  10. 26 Jun, 2017 2 commits
  11. 23 Jun, 2017 1 commit
  12. 21 Jun, 2017 1 commit
  13. 20 Jun, 2017 4 commits
  14. 19 Jun, 2017 4 commits
  15. 15 Jun, 2017 6 commits