diff --git a/app/js/directives.js b/app/js/directives.js index 54db449..6f3f6f5 100644 --- a/app/js/directives.js +++ b/app/js/directives.js @@ -281,6 +281,7 @@ angular.module('app.directives', []) childScope.$last = (index === (arrayLength - 1)); childScope.$middle = !(childScope.$first || childScope.$last); childScope.$odd = !(childScope.$even = index%2==0); + childScope.$depth = $scope.$depth != undefined ? $scope.$depth + 1 : 0; if (!block.startNode) { linker(childScope, function(clone) {