You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.1 KiB

7 years ago
  1. /*!
  2. * Angular Material Design
  3. * https://github.com/angular/material
  4. * @license MIT
  5. * v1.1.0-rc.5-master-26a5fb8
  6. */
  7. (function( window, angular, undefined ){
  8. "use strict";
  9. (function() {
  10. 'use strict';
  11. /**
  12. * @ngdoc module
  13. * @name material.components.fabTrigger
  14. */
  15. angular
  16. .module('material.components.fabTrigger', ['material.core'])
  17. .directive('mdFabTrigger', MdFabTriggerDirective);
  18. /**
  19. * @ngdoc directive
  20. * @name mdFabTrigger
  21. * @module material.components.fabSpeedDial
  22. *
  23. * @restrict E
  24. *
  25. * @description
  26. * The `<md-fab-trigger>` directive is used inside of a `<md-fab-speed-dial>` or
  27. * `<md-fab-toolbar>` directive to mark an element (or elements) as the trigger and setup the
  28. * proper event listeners.
  29. *
  30. * @usage
  31. * See the `<md-fab-speed-dial>` or `<md-fab-toolbar>` directives for example usage.
  32. */
  33. function MdFabTriggerDirective() {
  34. // TODO: Remove this completely?
  35. return {
  36. restrict: 'E',
  37. require: ['^?mdFabSpeedDial', '^?mdFabToolbar']
  38. };
  39. }
  40. })();
  41. })(window, window.angular);