Merge pull request #11337 from WeMoveEU/CRM-21460
[civicrm-core.git] / ang / crmRouteBinder.js
index 196fb3eb91a13ae01f3869ae03a548a1892047da..16947a3d79dc0d65e38238789fccc9f2ec1b4332 100644 (file)
@@ -51,6 +51,9 @@
 
         options.format = options.format || 'json';
         var fmt = formats[options.format];
+        if (options.deep) {
+          fmt.watcher = '$watch';
+        }
         if (options.default === undefined) {
           options.default = fmt.default;
         }
@@ -85,7 +88,7 @@
             activeTimer = null;
             ignorable = {};
           }, 50);
-        });
+        }, options.deep);
       };
 
       return $delegate;