ng-fab-form
ng-fab-form copied to clipboard
Feature request - required and ng-pattern validation for ui-select
I agree, that this would be a nice feature. I don't know when I will have time for that though. In the meantime feel free to submit a pr. The best way to do it, would be probably to allow the ngFabFormsValidationsDirective
to take parameters for restrict and the name. This would allow to apply the validations directive to any element, e.g. something like that:
ngFabFormsValidationsDirective('ui-select',{restrict:'EA'});
https://github.com/johannesjo/ng-fab-form/blob/master/src/ng-fab-form-validations-directive-f.js
I tried validation for ui-select by adding
angular.module('ngFabForm') .directive('uiSelect', ['ngFabFormValidationsDirective', function (ngFabFormValidationsDirective) { 'use strict';
return ngFabFormValidationsDirective;
}]);
`
But the validation is not working.