ionic-angular
Version:
A powerful framework for building mobile and progressive web apps with JavaScript and Angular
40 lines • 1.51 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { Directive, ElementRef, Renderer } from '@angular/core';
import { Config } from '../../config/config';
import { Ion } from '../ion';
/**
* @name Badge
* @module ionic
* @description
* 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.
* @see {@link /docs/components/#badges Badges Component Docs}
*/
var Badge = (function (_super) {
__extends(Badge, _super);
function Badge(config, elementRef, renderer) {
return _super.call(this, config, elementRef, renderer, 'badge') || this;
}
Badge.decorators = [
{ type: Directive, args: [{
selector: 'ion-badge'
},] },
];
/** @nocollapse */
Badge.ctorParameters = function () { return [
{ type: Config, },
{ type: ElementRef, },
{ type: Renderer, },
]; };
return Badge;
}(Ion));
export { Badge };
//# sourceMappingURL=badge.js.map