Since `attr()` returns `undefined`, you can change this to `ngRepeatExp = $el.attr("ng-repeat") or "row in section.rows"`.