diff options
| author | Igor Minar | 2011-01-19 00:10:39 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-01-19 15:52:27 -0800 |
| commit | a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1 (patch) | |
| tree | 791c8ac9c0f235dd6afe71f951518b9bf41f8bcd /src/services.js | |
| parent | 63690d189214135f22171ad8795ccfe15103a8e6 (diff) | |
| download | angular.js-a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1.tar.bz2 | |
$route should create child scope via $new
Diffstat (limited to 'src/services.js')
| -rw-r--r-- | src/services.js | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
