import { Component } from '@angular/core' ; import { Release } from '../../shared/release' ; @ Component ( { selector : 'app-template-driven-form' , templateUrl : './template-driven-form.component.html' } ) export class TemplateDrivenFormComponent { demoDateValue : Release ; demoLocalDateValue : Release ; demoDefault : Release ; demoDateValueDisabled = false ; demoLocalDateValueDisabled = false ; demoDefaultDisabled = false ; constructor ( ) { this . demoDateValue = new Release ( '2.0.0' , new Date ( '2020-01-01' ) ) ; this . demoLocalDateValue = new Release ( '3.0.0' , new Date ( 2020 , 0 , 1 ) ) ; this . demoDefault = new Release ( '1.5.8' , new Date ( '2016-07-22' ) ) ; } typeof ( obj ) { return typeof obj ; } }