main-block.directive.js 563 Bytes
(function() {
  'use strict';

  angular
    .module('angular')
    .directive('noosferoMainBlock', noosferoMainBlock);

  /** @ngInject */
  function noosferoMainBlock() {
    var directive = {
      restrict: 'E',
      templateUrl: 'app/components/noosfero-blocks/main-block/main-block.html',
      scope: {
          block: '=',
          owner: '='
      },
      controller: MainBlockController,
      controllerAs: 'vm',
      bindToController: true
    };

    return directive;

    /** @ngInject */
    function MainBlockController() {
    }
  }

})();