How to show message of custom validation?

Hi

I'm using Bonita Studio community version 7.8 and I'm newcomer in Angular js.

I add a new validation in a custom widget:

1. add module in "Required angular modules"

2. add js file in "Assets"

3. add attributes of module to my input

Now I wanna to show error message after input, But I don't know How do I do!

New validation works and show relevant class added to input.

How I add my message in ng-messages-include:

<div ng-messages="$form[ctrl.name].$dirty && $form[ctrl.name].$error "  ng-messages-include="forms-generic-errors.html" role="alert">
   </div>

Hello,

you can add a custom error message included in a text widget. I have extracted an example that you should be able to reuse. Tell me if it works.