import { Component, Input } from '@angular/core'; import { BadgeConfig } from '../components/badge'; @Component({ selector: 'title-and-section', template: `

{{ badge }}
{{ section }}
{{ title }}

{{typeLabel}}: {{type}}

`, }) export class TitleAndSectionComponent { /** * Sets the section text */ @Input() public section: string; /** * Sets the title text */ @Input() public title: string; /** * Sets the id attribute value */ @Input() public id: string; /** * Sets the badge text */ @Input() public badge: string; /** * Sets the type text */ @Input() public type: string; /** * Sets the type label text */ @Input() public typeLabel: string; /** * Sets the caption text */ @Input() public caption: string; /** * Sets the badge component options */ @Input() public badgeOptions: BadgeConfig = {}; }