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

Selesai Dipasang Mar 21, 2015 Dibayar saat pengiriman
Selesai

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

ID Proyek: #7345648

Tentang proyek

4 proposal Proyek online Aktif Mar 21, 2015

Diberikan kepada:

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 / jam
(10 Ulasan)
3.2

4 freelancer rata-rata menawar $20/jam untuk pekerjaan ini

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 / jam
(0 Ulasan)
0.0
dpbhatt02

A proposal has not yet been provided

$22 USD / jam
(0 Ulasan)
0.0