File

projects/rebirth-ng/src/lib/badge/badge.component.ts

Metadata

changeDetection ChangeDetectionStrategy.OnPush
host {
}
selector re-badge

Index

Inputs

Inputs

cssClass

Type: string

text

Type: string

import { Component, Input, ChangeDetectionStrategy } from '@angular/core';

@Component({
  selector: 're-badge',
  template: '',
  host: {
    '[class]': '"badge " + (cssClass ? cssClass : "")',
    '[innerText]': 'text'
  },
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class BadgeComponent {
  @Input() cssClass: string;
  @Input() text: string;
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""