JSFiddle - React, Tailwind, and code Playground
HTML
<div ng-app>
<div ng-controller="ctrl">
Swatches
<ul>
<li ng-repeat="obj in objects" class="swatch"> <br/>
Listing of properties:
<br/>
<p ng-repeat="(key,value) in obj">
{{key}} : <input ng-model="obj[key]" />
</p>
</li>
</ul>
</div>
</div>
JavaScript
function ctrl($scope) {
$scope.objects = [
{
Name: '1',
Identifier: '1',
Secret: 'password'
},
{
Name: '2',
Identifier: '2'
}
]
// $scope.setSelected = ?????;
}