Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 7d3c9b9

Browse files
author
Kamil Kisiela
committed
feat(messages): support for showError
showError is a shortcut for options.validation.errorExistsAndShouldBeVisible
1 parent bfa31e8 commit 7d3c9b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wrappers/messages/messages.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<formly-transclude></formly-transclude>
2-
<div ng-messages="fc.$error">
2+
<div ng-messages="fc.$error" ng-show="showError">
33
<div ng-repeat="(name, message) in ::options.validation.messages"
44
ng-message-exp="name">
55
{{message(fc.$viewValue, fc.$modelValue, this)}}
66
</div>
7-
</div>
7+
</div>

0 commit comments

Comments
 (0)