Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Empty Guid string displays as 0 in angular/typescript [closed]

I would like to understand why the following behavior happens.

Take a look at my Stackblitz example here

I need the "00000000-0000-0000-0000-000000000000" empty guid, to stay in the same format, but for some reason, Typescript changes it to a value 0.

Why is this happening?

like image 467
monstertjie_za Avatar asked Oct 23 '25 12:10

monstertjie_za


1 Answers

Fixed it with this.

[value]="'00000000-0000-0000-0000-000000000000'"

So it is now a string.

like image 85
holydragon Avatar answered Oct 25 '25 00:10

holydragon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!