【发布时间】:2020-09-20 16:05:18
【问题描述】:
我有两个简单的字段(输入)开始日期和结束日期我只是希望结束日期不应小于开始日期
我正在使用角度 8 我正在使用 ng 模块
所以从 myfile.json 文件中,我创建了两个文本字段,并使用我的日期函数 (validation.ts) 在 HTML 格式中验证了它们
现在我想验证两个日期我是新的 Angular 开发人员,请帮助
json code
{
"className": "col-md-6 col-xs-12",
"key": "graduationstartdate",
"type": "input",
"templateOptions": {
"label": "Course start Date",
"appearance": "outline"
}
},
{
"className": "col-md-6 col-xs-12",
"key": "graduationenddate",
"type": "input",
"templateOptions": {
"label": "Course End Date",
"appearance": "outline"
}
validation.ts
it contains a function to validate the date
form.html
contains formly code of form
【问题讨论】:
标签: json angular typescript angular8 angular-formly