Create an AngularJS directive no allow [login to view URL] to work with ng-require

Completed Posted Mar 21, 2015 Paid on delivery
Completed

I'm using [url removed, login to view] for validation with a very simple directive (attached).

This works fine but I have one problem , which is that it ignores ng-require. It works with "require" instead but require is impossible to include dynamically (it seems). I'm using iteration to build forms from db table descriptors, so whether a field is required is provided by an ajax call to get the field descriptions – thus I need the "required" attribute to be set dynamically during iteration.

In other words if the ng-required attribute returns true, then the required attribute must be set (and picked up by parsley for validation), otherwise not.

AngularJS JavaScript jQuery / Prototype

Project ID: #7345648

About the project

4 proposals Remote project Active Mar 21, 2015

Awarded to:

rameshmahala

Hello there, require is possible to include dynamically (done) we can do this by adding another custom directive which will set required attribute dynamically. I have prepared a demo for same. Thanks, Ramesh

$22 USD / hour
(10 Reviews)
3.2

4 freelancers are bidding on average $20/hour for this job

ssletscode

I have once created some form using iterations where complex validations were applied on the fly. I can create a directive which will serve your purpose and work on the fly

$22 USD / hour
(0 Reviews)
0.0
dpbhatt02

A proposal has not yet been provided

$22 USD / hour
(0 Reviews)
0.0