Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mixin): add ngModel mixin for reuse (control value accessor) #1024

Merged
merged 3 commits into from
Dec 13, 2017

Conversation

emoralesb05
Copy link
Contributor

Description

Creating a mixin that adds ngModel support (implementing IControlValueAccessor) to avoid duplicating the same code over and over in the components where we wanted this.

What's included?

  • mixinControlValueAccesor mixin
  • Leverage in chips, data-table, file-input and file-upload

Test Steps

  • npm run serve
  • Play around with mentioned components to see them still work with ngModel

General Tests for Every PR

  • npm run serve:prod still works.
  • npm run lint passes.
  • npm test passes and code coverage is not lower.
  • npm run build still works.

Copy link
Collaborator

@richavyas richavyas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@emoralesb05 emoralesb05 merged commit 7a30cb5 into develop Dec 13, 2017
@emoralesb05 emoralesb05 deleted the feature/cva-mixin-v2 branch December 13, 2017 22:52
kriswinbush pushed a commit to kriswinbush/covalent that referenced this pull request Feb 20, 2020
…eradata#1024)

* feat(mixin): add ngModel mixin for reuse (control value accessor)

* feat(): use ngModel mixin where possible
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants