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

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

Description

@vogloblinsky

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)
}"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions