Skip to content

Commit

Permalink
add expression dynamic return messages using functions Test Api Build
Browse files Browse the repository at this point in the history
  • Loading branch information
liangkuaisheng committed Aug 24, 2016
1 parent bcf3881 commit 73fc9c1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion API.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ You can also add a `validation-group` directive to group many elements into a gr
<label>Huei (Custom setup the new validator - Function)</label>
<input type="text" name="huei" ng-model="form.huei" validator="huei"/>

<label>Huei (Custom setup the new validator - Function)</label>
<label>Kuaisheng (Custom setup the new validator - Function)</label>
<input type="text" name="kuaisheng" ng-model="form.kuaisheng" validator="kuaisheng"/>
```

Expand Down
2 changes: 1 addition & 1 deletion dist/angular-validation.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ angular.module('validation.directive', ['validation.provider']);
* }
*/
function getResultObj(data) {
var res = null;
var res = {};
if (data && data.length > 0) {
res = data[0];
if (!angular.isObject(res)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-validation.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/validator.directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
* }
*/
function getResultObj(data) {
var res = null;
var res = {};
if (data && data.length > 0) {
res = data[0];
if (!angular.isObject(res)) {
Expand Down

0 comments on commit 73fc9c1

Please sign in to comment.