unobtrusive-angular-validation icon indicating copy to clipboard operation
unobtrusive-angular-validation copied to clipboard

Samples?

Open jaricardodev opened this issue 9 years ago • 1 comments

Hi, i'm really interestad on using yor solution for a personal project, could you provide some practical samples? Thanks in advance!

jaricardodev avatar Jan 28 '16 18:01 jaricardodev

The best samples for the angular structure can be found in the test scripts.

https://github.com/mdekrey/unobtrusive-angular-validation/tree/master/ResponsivePath.Validation.Scripts/Assets/TestScripts

For example, the regex validation sample (this one validates basic a GUID format) can be found here: https://github.com/mdekrey/unobtrusive-angular-validation/blob/master/ResponsivePath.Validation.Scripts/Assets/TestScripts/val-regex.ts#L27

<input type="text" data-val="true" name="Target" ng-model="target" data-val-regex="Invalid" data-val-regex-pattern="^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$" />

mdekrey avatar Feb 20 '16 18:02 mdekrey