If I have in my controller
something like:
... $scope.arr = ["orange", "apple", "pear"]; ...
Why would the following work:
... <li data-ng-repeat="item in arr"> <span data-ng-bind="item"></span> </li> ...
Output (as expected):
- orange
- apple
- pear
And this not work:
... <li data-ng-repeat="item in arr"> <span>{{item}}</span> </li> ...
Output:
According to the documentation, they should both work the same, no?
EDIT:
Looks like it does work. Any common issues that might cause this type of behavior?
EDIT 2:
Figured it out (solution below). The key factor was that I'm suing Django.