<ion-header [translucent]=“true”>
Add Expense
<ion-button (click)=“dismissModal()” size=“large” slot=“end”>
Amount:
<ion-input type=“number” #amount>
Description:
<ion-input type=“text” #desc>
Expense:
<ion-select label-placement=“floating” value=“Food” okText=“Done” #type>
<ion-select-option
value=“Food”
*ngFor=“let item of expenseTypes”
[value]=“item.name”
>{{ item.name }}
<ion-button (click)=“logExpenseInput(amount,desc,type)” expand=“block” fill=“clear” shape=“round”>
Log Expense
I am facing error at amount in method which says that
Argument of type ‘IonInput’ is not assignable to parameter of type ‘string’.ngtsc(2345)
Please suggets me what to do?
The error makes it absolutely clear what is wrong. The method is expecting a string, but you are passing an instance of IonInput