Example of Angular-Validation with Custom Javascript function
Directive
×
ERRORS!
{{ item.field }}: {{item.message}}
Type '
abc
' for a valid answer
Custom javascript Validation (error msg using alt:)
Type '
def
' for a valid answer
Custom javascript Validation (error msg declared in custom function)
Valid IBAN
{{ 'SAVE' | translate }} (ngDisabled)
{{ 'SAVE' | translate }} (ngSubmit)
Service
×
ERRORS!
{{ item.field }}: {{item.message}}
Type '
abc
' for a valid answer
Custom javascript Validation (error msg using alt:)
Type '
def
' for a valid answer
Custom javascript Validation (error msg declared in custom function)
Valid IBAN
{{ 'SAVE' | translate }} (ngDisabled)
{{ 'SAVE' | translate }} (ngSubmit)