Вот как это выглядит:
Редактировать компонент актива < /p>
Код: Выделить всё
Purchase Date
calcStartDate:string
reDateChanged(e:any) {
this.calcStartDate = e.detail.value
}
async addExpense(){
const modal = await this.modalCtl.create({
component: AddExpenseComponent,
componentProps: {
"expenseType": this.assetType,
"doNotCommit": true,
"parentKey": objectKey,
"mode": "add"
}
})
modal.present();
const { data, role } = await modal.onWillDismiss();
}
< /code>
addExpenseComponent < /p>
Date
calcStartDate:string //expense start date
dateChanged(e:any) {
this.calcStartDate = e.detail.value
}
Подробнее здесь: https://stackoverflow.com/questions/793 ... components