From 64b8eee0e98600ab1d3945dbe78dd651e71f6e0b Mon Sep 17 00:00:00 2001 From: Huei Tan Date: Mon, 8 Dec 2014 12:04:46 +0800 Subject: [PATCH] Add ng-repeat input box example How to make it support multiple input box for the same validator #63 --- demo/demo.js | 5 +++++ index.html | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/demo/demo.js b/demo/demo.js index a87a1d0..1fc3535 100644 --- a/demo/demo.js +++ b/demo/demo.js @@ -141,6 +141,11 @@ } }; + $scope.form6 = { + required: [{}, {}, {}], // ng-repeat + checkValid: $validationProvider.checkValid + }; + // Callback method $scope.success = function (message) { alert('Success ' + message); diff --git a/index.html b/index.html index 1106e20..70a9e47 100644 --- a/index.html +++ b/index.html @@ -217,6 +217,23 @@

Angular Validation. + +
+
+
+ Form (ng-repeat) + + +
+ +
    +
  • +
  • +
  • +
+ +
+
Fork me on Github