filter book in the request through 'type' parameter instead of filtering on client side
(function(){
'use strict';
angular.module('ammico')
.controller('routeClassCtrl', function($scope, $location) {
$scope.isActive = function(route) {
return route === $location.path();
};
});
})();