I am recieving the following error while trying to bind values with ng-repeat TypeError: Cannot read property '#' of undefined
html:
<ul ng-controller="PeopleCtrl">
<li ng-repeat="people in peoples">
{{people.name}}
</li>
</ul>
JS:
var PeopleCtrl = function ($scope) {
$scope.peoples [
{name: 'Zed'},
{name: 'Ben'}
];
};
Any ideas why this isn't working? Thanks