aboutsummaryrefslogtreecommitdiffstats
path: root/src/services.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/services.js')
-rw-r--r--src/services.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/services.js b/src/services.js
index b549292f..68860e22 100644
--- a/src/services.js
+++ b/src/services.js
@@ -747,6 +747,20 @@ angularServiceInject('$route', function(location) {
*/
otherwise: function(params) {
$route.when(null, params);
+ },
+
+ /**
+ * @workInProgress
+ * @ngdoc method
+ * @name angular.service.$route#reload
+ * @methodOf angular.service.$route
+ *
+ * @description
+ * Causes `$route` service to reload (and recreate the `$route.current` scope) upon the next
+ * eval even if {@link angular.service.$location $location} hasn't changed.
+ */
+ reload: function() {
+ dirty++;
}
};
function updateRoute(){