0

I am wondering whether I can set the repeat_expression in the scope and bind it in HTML?
Such as:

HTML

<ul>
  <li ng-repeat="expression">{{item.name}}</li>
</ul>

or

<ul>
  <li ng-repeat={{expression}}>{{item.name}}</li>
</ul>

Controller

$scope.expression = "item in items";
Kanjie Lu
  • 997
  • 2
  • 9
  • 26

0 Answers0