get the book id of the book to delete from the template instead of $index (because we reorder the list so $index are not really clear anymore)
(function(){
'use strict';
angular.module('ammico')
.controller('routeClassCtrl', function($scope, $location) {
$scope.isActive = function(route) {
return route === $location.path();
};
});
})();