How does it happen that the model shows "Title" and "Id" but the code sample shows several cases of lower case for the first letter?
This is the sample code:
Code:
<div ng-controller="ListController" class="row">
<div class="span6">
<table class="table table-striped">
<tr ng-repeat="movie in movies">
<td>
{{movie.title}} id = {{movie.id}}
</td>
<td>
<button class="btn" ng-click="delete(movie)">Delete</button>
<a href="#/details/{{movie.id}}" class="btn">Details</a>
</td>
</tr>
</table>
<button class="btn" ng-click="create()">Create</button>
</div>
<div class="span6">
<div >
<div ng-include="'/Client/views/edit.html'"></div>
</div>
</div>
</div>
(I added the "id = {{movie.id}}" for a test)
If I try to use lower case for the first letter of the data fields, my code fails?
This is my code:
Code:
<div ng-controller="ListController" class="row">
<div class="span6">
<table class="table table-striped">
<tr ng-repeat="movie in movies">
<td>
{{movie.Title}} id= {{movie.Id}}
</td>
<td>
<button class="btn" ng-click="delete(movie)">Delete</button>
<a href="#/details/{{movie.Id}}" class="btn">Details</a>
</td>
</tr>
</table>
<button class="btn" ng-click="create()">Create</button>
</div>
<div class="span6">
<div>
<div ng-include="'/Client/views/edit.html'"></div>
</div>
</div>
</div>
BTW, running the sample code requires putting connection strings in the config file.