I have an ngFor
directive bound to a list of objects with an option element. I bound the id property of the object to ngValue
to be used later. The odd thing I've noticed is that when I get the value in the .ts file, part of the id is missing from the value I got from the database. When I use the value
attribute instead, I get the whole id.
The picture shows the difference between the two attributes in the last 6 characters.
Anyone know why this is happening? Is there something about ng-reflect
that limits the length of a string?