Form not validating Cam2cam chat no registration no credit card


07-Mar-2016 07:16

angular.module("app").directive('ui Select Required', function () { return { require: 'ng Model', link: function (scope, element, attr, ctrl) { ctrl.$Select Required = function (model Value, view Value) { if (Select Required) { var is Required = scope.$eval(Select Required) if (is Required == false) return true; } var determine Val; if (Array(model Value)) { determine Val = model Value; } else if (Array(view Value)) { determine Val = view Value; } else { return false; } return determine Val.length Hello guys!

, I've solved this to use in one of our projects, you can find the library working here: https://github.com/zgbjgg/ui-select/tree/ng-required Basically, I did a change to observe the ng-required, and change to false when the model is not empty, otherwise is required (set to true), I hope this can be helpful :) I had to the template an hidden input who display the placeholder. With this, the browser block the submit of the form and display a message.

.directive('array Required',function(){ return { restrict:'A', require:'ng Model', link:function(scope,elem,attrs,ng Model){ ng Model.$validators.array Required = function(model Value,view Value){ return (model Value.length none of the solutions work for me neither on single nor multiple ui-select latest version.

form not validating-33

azerbaijan woman dating

.directive('ui Select Required', function () { return { require: 'ng Model', link: function (scope, element, attr, ctrl) { ctrl.$Select Required = function (model Value, view Value) { if (Select Required) { var is Required = scope.$eval(Select Required) if (is Required == false) return true; } var determine Val; if (Array(model Value)) { determine Val = model Value; } else if (Array(view Value)) { determine Val = view Value; } else if (Object(model Value)) { determine Val = angular.equals(model Value, {}) ?[] : ['true']; } else if (Object(view Value)) { determine Val = angular.equals(view Value, {}) ?