Sha256: 9a90ed8c23d7173cf6e4bb56533a062163c2855b6972d86f8521263c0ed4b307

Contents?: true

Size: 620 Bytes

Versions: 7

Compression:

Stored size: 620 Bytes

Contents

/**
 * @ngdoc directive
 * @name Bastion.components.directive:bstAlert
 *
 * @description
 *   Simple directive for encapsulating an alert display.
 *
 * @example
 *   <pre>
 *     <div bst-alert="success"></div>
 *   </pre>
 */
angular.module('Bastion.components').directive('bstAlert', function () {
    return {
        templateUrl: 'components/views/bst-alert.html',
        transclude: true,
        scope: {
            type: '@bstAlert',
            close: '&'
        },
        controller: ['$scope', '$attrs', function ($scope, $attrs) {
            $scope.closeable = 'close' in $attrs;
        }]
    };
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bastion-3.2.1 app/assets/javascripts/bastion/components/bst-alert.directive.js
bastion-3.2.0 app/assets/javascripts/bastion/components/bst-alert.directive.js
bastion-3.1.0 app/assets/javascripts/bastion/components/bst-alert.directive.js
bastion-3.0.1 app/assets/javascripts/bastion/components/bst-alert.directive.js
bastion-3.0.0 app/assets/javascripts/bastion/components/bst-alert.directive.js
bastion-2.1.0 app/assets/javascripts/bastion/components/bst-alert.directive.js
bastion-2.0.4 app/assets/javascripts/bastion/components/bst-alert.directive.js