blob: 25264129db7bdb20929e50206f6ecbb84658e4d8 [file] [log] [blame]
Matteo Scandoloac8c8c22017-01-09 15:04:32 -08001<!--<pre>{{vm.field | json}}</pre>-->
2<div ng-cloak>
3 <xos-alert config="vm.config" show="vm.field.$error.required !== undefined && vm.field.$error.required !== false && (vm.field.$touched || vm.form.$submitted)">
4 Field required
5 </xos-alert>
6 <xos-alert config="vm.config" show="vm.field.$error.email !== undefined && vm.field.$error.email !== false && (vm.field.$touched || vm.form.$submitted)">
7 This is not a valid email
8 </xos-alert>
9 <xos-alert config="vm.config" show="vm.field.$error.minlength !== undefined && vm.field.$error.minlength !== false && (vm.field.$touched || vm.form.$submitted)">
10 Too short
11 </xos-alert>
12 <xos-alert config="vm.config" show="vm.field.$error.maxlength !== undefined && vm.field.$error.maxlength !== false && (vm.field.$touched || vm.form.$submitted)">
13 Too long
14 </xos-alert>
15 <xos-alert config="vm.config" show="vm.field.$error.custom !== undefined && vm.field.$error.custom !== false && (vm.field.$touched || vm.form.$submitted)">
16 Field invalid
17 </xos-alert>
18</div>