/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v0.10.0 */ (function( window, angular, undefined ){ "use strict"; /** * @ngdoc module * @name material.components.card * * @description * Card components. */ angular.module('material.components.card', [ 'material.core' ]) .directive('mdCard', mdCardDirective); /** * @ngdoc directive * @name mdCard * @module material.components.card * * @restrict E * * @description * The `` directive is a container element used within `` containers. * * An image included as a direct descendant will fill the card's width, while the `` * container will wrap text content and provide padding. An `` element can be * optionally included to put content flush against the bottom edge of the card. * * Action buttons can be included in an element with the `.md-actions` class, also used in `md-dialog`. * You can then position buttons using layout attributes. * * Cards have constant width and variable heights; where the maximum height is limited to what can * fit within a single view on a platform, but it can temporarily expand as needed. * * @usage * ###Card with optional footer * * * image caption * *

Card headline

*

Card content

*
* * Card footer * *
*
* * ###Card with actions * * * image caption * *

Card headline

*

Card content

*
*
* Action 1 * Action 2 *
*
*
* */ function mdCardDirective($mdTheming) { return { restrict: 'E', link: function($scope, $element, $attr) { $mdTheming($element); } }; } mdCardDirective.$inject = ["$mdTheming"]; })(window, window.angular);