I encountered an issue when trying to bind values using ng-repeat. The error message I'm getting is: TypeError: Cannot read property '#' of undefined
Here's the HTML code:
<ul ng-controller="PeopleCtrl">
<li ng-repeat="people in peoples">
{{people.name}}
</li>
</ul>
And here's the JS code:
var PeopleCtrl = function ($scope) {
$scope.peoples [
{name: 'Zed'},
{name: 'Ben'}
];
};
Can anyone provide some insights on why this isn't working? Thank you!