I have an array called data.list that stores a list of mandatory and optional appointments:
data.list.push({
mandatory: appt.getDisplayValue('mandatory_appointments'),
optional: appt.getDisplayValue('optional_appointments')
});
Mandatory and Optional returns a comma separate list of appointments that looks like this:
appointment1, appointment2, appointment3, appointment4, etc...
For my HTML, I wanted to use ng-repeat to produce a list of mandatory and optional tasks that looks like this:
appointment1
appointment2
appointment3
appointment4
What do I need to change in order to achieve this?
<div ng-repeat="item in c.list track by $index">
{{item.mandatory}}
</div>