I want to display my database entries. Angular repeats list items but doesn't display any values. The entries database has a title column.
View:
<div ng-controller="EntryCtrl">
<h2>Angular Display</h2>
<ul>
<li ng-repeat="entry in entries">
{{entry.title}}
</li>
</ul>
</div>
Coffee-script:
app = angular.module("Resume", ["ngResource"])
app.factory "Entry", ["$resource", ($resource) ->
$resource("/entries/:id", {id: "@id"}, {update: {method: "GET"}})
]
@EntryCtrl = ["$scope", "Entry", ($scope, Entry) ->
$scope.entries = Entry.get()
]