Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Does ngChange automatically cause select become dirty?
Message
 
 
À
14/11/2016 12:30:14
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01643370
Message ID:
01643410
Vues:
18
Now my Mover never detects the changes because

adding no-dirtry-check automatically makes the controls to not participate in the dirty/pristine changes.

Is there a way to add this directive somehow conditionally or on the fly to my select lists?

E.g. I only need this directive added if keepPristine set to true.

I think I'll just add some code to the MoveLeft and MoveRight buttons to make the form dirty at it will solve my problem.

UPDATE. So, I added no-dirty-check to both select controls and in the directive's code I set form's dirty state conditionally. I think it now works fine the way I needed.

Thanks again.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform