AngularJS Example:
by ncapito
HTML
<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css">
<div ng-app>
<h2>Todo</h2>
<div ng-controller="TodoCtrl">
<select ng-model="filtrs.id" ng-change="filtered()" ng-options="tags.id as tags.name for tags in inventories.tags">
<option value="">Tags</option>
</select>
</div>
</div>
CSS
.done-true {
text-decoration: line-through;
color: grey;
}
JavaScript
function TodoCtrl($scope) {
$scope.inventories = {
model: "Concept 2014",
modified: "2014-04-24",
resource_uri: "/api/v1/inventory/2",
tags: [{
id: 85,
name: "something",
resource_uri: "/api/v1/tags/85",
slug: "something"
}]
}
}