function panel() {
  return {
    restrict: 'E',
    scope: {
      category: '='
    },
    templateUrl: 'category.edit.html',
    controller: 'CategoryCtrl'
  };
}

module.exports.panel = panel;

function controller($scope) {

}

module.exports.controller = ['$scope', controller];


function panel() {
  return {
    restrict: 'E',
    scope: {
      category: '='
    },
    templateUrl: 'category.edit.html',
    controller: 'CategoryCtrl'
  };
}

module.exports.panel = panel;

function controller($scope) {
  $scope.deleteCategory = function(category) {
    console.log(category);
  };

  $scope.editCategory = function(category) {
    console.log(category);
  };
}

module.exports.controller = ['$scope', controller];


Add images and ng-click handlers
Add images and ng-click handlers
