Javascript – Angular: Prevent modal from closing when there is error
I have made use of a generic approach where on adding a food item, a modal with a form will open to let the user add his details. However, for the check on backend for duplicate items, i can only…