I'm getting into angular, but am coming across a wacky problem. I'm sure I'm making a dumb mistake, but don't know what it is.
In my controller, I do the following ->
angular.module('foo')
.controller('AdminCtrl', ['$scope', '$http'], (s, $http) ->
s.foo = []
$http
method: 'GET'
url: cfg.api '/foo'
.success (data) ->
s.foo = _(data).map (item) ->
wid: item
Then in html, I write ->
<li ng-repeat"bar in foo">
<p>{{foo}}</p>
</li>
I'm expecting for li to print out bar.length times, but it actually only prints out once.
This made me think that foo wasn't a proper array, but {{foo}} returns
[{...}, {...}, {...}]
What's going on here?