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

Ukończone Opublikowano Mar 21, 2015 Płatność przy odbiorze
Ukończone

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

Numer ID Projektu: #7345648

O projekcie

4 ofert Zdalny projekt Aktywny Mar 21, 2015

Przyznany użytkownikowi:

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 / godzina
(10 ocen)
3.2

4 freelancerów złożyło ofertę na średnią kwotę $20/godzinę w tym projekcie

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 / godzina
(0 Oceny)
0.0
dpbhatt02

A proposal has not yet been provided

$22 USD / godzina
(0 Oceny)
0.0