client/app/app_controller.js
author nowmad@23.1.168.192.in-addr.arpa
Wed, 02 Dec 2015 11:41:53 +0100
changeset 196 e3d3cd7a676a
parent 0 cef349423167
permissions -rw-r--r--
mark safe the url passed by the server to prevent django from sanitazing them (& -> &apm;)

(function(){
  'use strict';

  angular.module('ammico')
  .controller('routeClassCtrl', function($scope, $location) {
    $scope.isActive = function(route) {
        return route === $location.path();
    };
  });

})();