aboutsummaryrefslogtreecommitdiffstats
path: root/src/services.js
diff options
context:
space:
mode:
authorIgor Minar2011-01-23 22:24:53 -0800
committerIgor Minar2011-01-24 14:03:42 -0800
commit8d507df8c9664cc35467577971532cc20be2912f (patch)
tree24fd2fd811956386da2b166325f639dfc83fb96c /src/services.js
parent567f33823b34969fa1b340c9d6c04e2c5a60d281 (diff)
downloadangular.js-8d507df8c9664cc35467577971532cc20be2912f.tar.bz2
Revert "$route should create child scope via $new"
This reverts commit a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1. See 9ca2facb for reasoning.
Diffstat (limited to 'src/services.js')
-rw-r--r--src/services.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/services.js b/src/services.js
index de65e30f..1a7b91ac 100644
--- a/src/services.js
+++ b/src/services.js
@@ -708,7 +708,7 @@ angularServiceInject('$route', function(location) {
if (!childScope) {
var pathParams = matcher(location.hashPath, route);
if (pathParams) {
- childScope = parentScope.$new();
+ childScope = createScope(parentScope);
$route.current = extend({}, routeParams, {
scope: childScope,
params: extend({}, location.hashSearch, pathParams)