12345678910111213141516171819202122232425262728293031323334353637383940
  1. var __extends = (this && this.__extends) || (function () {
  2. var extendStatics = Object.setPrototypeOf ||
  3. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  4. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  5. return function (d, b) {
  6. extendStatics(d, b);
  7. function __() { this.constructor = d; }
  8. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  9. };
  10. })();
  11. import { Directive, ElementRef, Renderer } from '@angular/core';
  12. import { Config } from '../../config/config';
  13. import { Ion } from '../ion';
  14. /**
  15. * @name Badge
  16. * @module ionic
  17. * @description
  18. * Badges are simple components in Ionic containing numbers or text. You can display a badge to indicate that there is new information associated with the item it is on.
  19. * @see {@link /docs/components/#badges Badges Component Docs}
  20. */
  21. var Badge = (function (_super) {
  22. __extends(Badge, _super);
  23. function Badge(config, elementRef, renderer) {
  24. return _super.call(this, config, elementRef, renderer, 'badge') || this;
  25. }
  26. Badge.decorators = [
  27. { type: Directive, args: [{
  28. selector: 'ion-badge'
  29. },] },
  30. ];
  31. /** @nocollapse */
  32. Badge.ctorParameters = function () { return [
  33. { type: Config, },
  34. { type: ElementRef, },
  35. { type: Renderer, },
  36. ]; };
  37. return Badge;
  38. }(Ion));
  39. export { Badge };
  40. //# sourceMappingURL=badge.js.map