I am working on a .NET Core app with Angular and I need to implement server-side validation using TypeScript.
Specifically, I have a button on the screen that should only trigger an action if certain fields have valid values. These values need to be checked against data in the database, so a server-side action is required.
Although I am not performing POST/PUT actions on button click, I do require mandatory field validation before triggering any action. Once the mandatory fields are filled in with valid values, clicking the button should open a pop-up window. In between these TypeScript actions, a server-side action needs to be performed.
What would be the most effective approach to achieve this functionality?