Passing Value of an Input type text to the home.ts

I will Look at the link, Thank you so much for the big Help.

Hello,
I do not know where

output at console this massage username: not updated

comes from, maybe name=“username” or maybe [(ngModel)]=“username”.

This is always a problem with same naming, also look to data: any = {}; is an object, var data = JSON.stringify({username: this.data.username}); is a json string. Both names data, different type. This is imho not really easy maintable and this combined with var. Happy debugging.

Best regards