diff --git a/src/route-segment.js b/src/route-segment.js index 2aed975..5387670 100644 --- a/src/route-segment.js +++ b/src/route-segment.js @@ -294,7 +294,7 @@ mod.provider( '$routeSegment', curSegment = null; for (var i in children) { (function(i, children, index) { - if (children[i].params.default) { + if (children[i].params['default']) { defaultChildUpdatePromise = defaultChildUpdatePromise.then(function () { return updateSegment(index, {name: i, params: children[i].params}) .then(function (result) { @@ -536,4 +536,4 @@ mod.filter('routeSegmentParam', ['$routeSegment', function($routeSegment) { }]); -})(angular); \ No newline at end of file +})(angular);