Source: components/bottom_options/bottom_options.js

/**
 * @ngdoc controllers
 * @name BottomOptions
 * @module s4c.controllers.BottomOptions
 *
 * @description Controller dos itens que são exibidos na parte inferior da tela
 * 
 * 
 */
(function () {
    'use strict';

    BottomOptionsController.$inject = ['$scope'];

    angular.module('s4CApp')
        .directive('bottomOptions', BottomOptionsDirective)
        .controller('BottomOptionsController', BottomOptionsController);

    function BottomOptionsDirective() {
        return {
            restrict: 'EA',
            link: postLink,
            templateUrl: 'app/components/bottom_options/bottom_options.html',
            controller: BottomOptionsController,
            scope: {
                items: '=',
                show: '='
            }
        };

        /**
         * @method postLink
         * 
         * @param {*} scope 
         * @param {*} element 
         * @param {*} attr 
         * @param {*} ctrls 
         */
        function postLink(scope, element, attr, ctrls) {
            scope.hide = function () {
                scope.show = !scope.show;
            }
        }
    }

    function BottomOptionsController($scope) {
    }

}());