divider.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v0.11.4
  6. */
  7. goog.provide('ng.material.components.divider');
  8. goog.require('ng.material.core');
  9. /**
  10. * @ngdoc module
  11. * @name material.components.divider
  12. * @description Divider module!
  13. */
  14. angular.module('material.components.divider', [
  15. 'material.core'
  16. ])
  17. .directive('mdDivider', MdDividerDirective);
  18. /**
  19. * @ngdoc directive
  20. * @name mdDivider
  21. * @module material.components.divider
  22. * @restrict E
  23. *
  24. * @description
  25. * Dividers group and separate content within lists and page layouts using strong visual and spatial distinctions. This divider is a thin rule, lightweight enough to not distract the user from content.
  26. *
  27. * @param {boolean=} md-inset Add this attribute to activate the inset divider style.
  28. * @usage
  29. * <hljs lang="html">
  30. * <md-divider></md-divider>
  31. *
  32. * <md-divider md-inset></md-divider>
  33. * </hljs>
  34. *
  35. */
  36. function MdDividerDirective($mdTheming) {
  37. return {
  38. restrict: 'E',
  39. link: $mdTheming
  40. };
  41. }
  42. MdDividerDirective.$inject = ["$mdTheming"];
  43. ng.material.components.divider = angular.module("material.components.divider");