Currently, my viewModel is passed from my controller to my view and it is populated list. I Can reference my Model in my view currently like Model.
However, if I wanted to do something like this:
<table style="margin-top:20px" cellpadding="2" cellspacing="2" border="1">
<tr>
<th>First Name</th>
<th>Last Name</th>
</tr>
<tr ng-show="users != null" ng-repeat="user in users">
<td>{{user.FirstName}}</td>
<td>{{user.LastName}}</td>
</tr>
</table>
users is not defined or recognized when I debug my view although "Model" is and it has the correct values I"m looking for. I'm familiar with razor syntax and getting the model or checking the model through Razor but what if I wanted to do a foreach loop above but with ng-repeat. How do I make sure I have the correct Model reference from my controller?
where Users is the model I'm getting the data from that's being persisted.