Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Validation Messages in spa forms #1786


User avatar
0
moustafa created

Hello i need to implement validation messages in spa forms because most of fields are different in validation some is required some has max-length some has min-length , some use regex and so on any suggestions i know about ng-messages in angular but i think i have to write a lot of code to handle all validation messages on my project is there any way to make validation messages shared between of my views thanks in advance


2 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    Hi,

    AspNet Zero's SPA views implement all validation rules in the client side as you know. You can check them to understand SPA validation. But we didn't show any validation messages on UI.

    AspNet Zero has not such a built-in solution. You may find help on the web since that is a general topic and related to angularjs.

  • User Avatar
    0
    moustafa created

    actually i'm going to use ng-messages directive to implement validation messages but the problem is i have to edit every single view to achieve that , i'm thinking for solution to achieve that in simple way and write less code thank you anyway