Hello. I am in the process of porting a Java application to the browser using Angular and PrimeNG. The hope is to not change the back-end while rewriting the front end. All of our checkbox fields are stored in the database as either "Y" or "N" instead of true or false. The Rest API expects to receive them as Y or N as well.
I think it makes sense to still use the checkbox in binary mode, however the goal is to have Checkbox selected if the model value = "Y" and unselected if the model value = "N". I'd rather not have to maintain both a boolean and string value for each checkbox. Is there a more seamless way to handle this?
UI Components for Angular
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests