angular ng-bind

by jeklund

HTML

<div ng-app ng-controller="foo">
    <div ng-repeat="member in members">
        <h1 ng-bind="member.value"></h1>
        <h1 ng-bind="member.selected"></h1>
    </div>
    
</div>

JavaScript

function foo($scope) {
    $scope.members = [{value: 'Josh', selected: false}, {value: 'Don', selected: true}];
}