From dd205ea69360d6a20398f82b67ad43e0ad6cf9e9 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Wed, 27 Jun 2018 21:04:56 -0400 Subject: [PATCH] Default index-as = i --- jael/lib/src/renderer.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jael/lib/src/renderer.dart b/jael/lib/src/renderer.dart index 4bbd317b..fdd7ac8f 100644 --- a/jael/lib/src/renderer.dart +++ b/jael/lib/src/renderer.dart @@ -180,7 +180,7 @@ class Renderer { var indexAsAttribute = element.attributes .firstWhere((a) => a.name == 'index-as', orElse: () => null); var alias = asAttribute?.value?.compute(scope)?.toString() ?? 'item'; - var indexAs = indexAsAttribute?.value?.compute(scope)?.toString() ?? 'item'; + var indexAs = indexAsAttribute?.value?.compute(scope)?.toString() ?? 'i'; var otherAttributes = element.attributes.where( (a) => a.name != 'for-each' && a.name != 'as' && a.name != 'index-as'); Element strippedElement;