we are using AngularJS and we are looking to create a series of HTML DIVs using ng-repeat with different HTML Attributes for each DIV.
For example we have the following list representing the DIVs we wish to create
{"id":"year","class":"zone editable","contenteditable":"true","html":""},
{"id":"analytics-image","class":"zone","html":""}
{"id":"title","class":"zone","html":"Credit Assessment"},
and would like to create the following HTML
<div id="year" class="zone editable" contenteditable="true"></div>
<div id="analytics-image" class="zone"></div>
<div id="title" class="zone">Credit Assessment</div>
I have the following Javascript
<div ng-repeat="item in items">{{item.html}} </div>
Where items is the key value pair from the above example.
Any help is most appreciated