Code Checking. Help!

I have no idea why this ionic code doesn’t work. Please assists.

It should be correct and output is shown as below:
image

But I have no idea why VISUAL STUDIO CODE detects an error and unable to run it.

Hello,

Select all code then press Ctrl + X(cut code) after do Ctrl + z(undo coe) and save(Ctrl + S) & see result.

Hello,
You cant self-close ion-input tag.
It must be closed /ion-input like this.

Ion-Input is not self close tag u need closing tag for it like below
<ion-input></ion-input>

Hi ThanksHi Thanks

Hi, i tried but theres still error.

u still has the self closing / inside ur first ion-input remove that

2 Likes

If i do that, my taskname will be the error

have u declared taskName inside ur home.page.ts file
if u have not u need to declare it, then only ngModel will recognize taskName

1 Like

Thank you so much :slight_smile: