Skip to content
This repository has been archived by the owner on Sep 28, 2023. It is now read-only.

[QUESTION] Directive for matching boosted and Angular validation classes #280

Open
vogloblinsky opened this issue Feb 4, 2022 · 0 comments
Labels

Comments

@vogloblinsky
Copy link

vogloblinsky commented Feb 4, 2022

Hi,

Do you think it could be interesting to add a directive in ng-boosted that could link boosted CSS validation classes and Angular ones : is-valid with ng-valid, is-invalid with ng-invalid ?

The idea is to not repeat code like that in templates :

[ngClass]="{
    'is-valid': offerForm.get('libelle').valid,
    'is-invalid': offerForm.get('libelle').invalid && (offerForm.get('libelle').dirty || offerForm.get('libelle').touched)
}"
@vogloblinsky vogloblinsky changed the title Directive for matching boosted and Angular validation classes [QUESTION] Directive for matching boosted and Angular validation classes Feb 4, 2022
@BehnooshShiva BehnooshShiva reopened this Feb 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants