import { Component , OnInit } from '@angular/core' ; import { RenderFieldComponent } from '../../fields/components.fields' ; @ Component ( { selector : 'cmdb-date-simple' , templateUrl : './date-simple.component.html' , styleUrls : [ './date-simple.component.scss' ] } ) export class DateSimpleComponent extends RenderFieldComponent implements OnInit { public date : any = 'no date set' ; constructor ( ) { super ( ) ; } public ngOnInit ( ) { this . date = this . data ? this . data . value ? this . data . value : this . date : this . date ; } }