import { Component , Input , OnInit } from '@angular/core' ; import { CmdbType } from '../../../framework/models/cmdb-type' ; @ Component ( { selector : 'cmdb-type-label' , templateUrl : './type-label.component.html' , styleUrls : [ './type-label.component.scss' ] } ) export class TypeLabelComponent { public label : string ; public icon : string ; @ Input ( ) public description : string ; @ Input ( ) public publicID : number ; @ Input ( ) useURL : boolean = false ; @ Input ( ) public set title ( value ) { this . label = value === undefined ? '' : value ; } public get title ( ) : string { return this . label ; } @ Input ( ) public set faIcon ( value ) { this . icon = value === undefined ? 'cube' : value ; } public get faIcon ( ) : string { return this . icon ; } }