client/app/app_controller.js
author rougeronj
Tue, 07 Apr 2015 12:00:14 +0200
changeset 74 44ebb0d0b836
parent 0 cef349423167
permissions -rw-r--r--
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();
    };
  });

})();