我想显示从开始日期到结束日期的消息

时间:2019-05-07 11:37:46

标签: angular

  

app.component.html

<div>
<label for="start">Start date:</label>
<input type="time" id="start" name="start" [(ngModel)]="start">
<label for="start">End date: </label>
<input type="time" id="end" name="end"[(ngModel)]="end">
<button type="submit" (click)="On()">submit</button>
</div>

<div> some msg </div>
  

app.component.ts

export class AppComponent  {

start;
end;

On(){
console.log('ur obj'+this.start+' '+this.end);
 }
}
  

想要在开始日期到来时显示“一些消息”,并在结束日期到来时禁用

0 个答案:

没有答案