From a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 19 Jan 2011 00:10:39 -0800 Subject: $route should create child scope via $new --- src/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/services.js') diff --git a/src/services.js b/src/services.js index 0801ee9c..3543b2ea 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 = createScope(parentScope); + childScope = parentScope.$new(); $route.current = extend({}, routeParams, { scope: childScope, params: extend({}, location.hashSearch, pathParams) -- cgit v1.2.3