Skip to content

Model values of CVC and Expiry aren't set #14

Description

@tschofen

Implemented CC, CVC and Expiry fields.

 <card-number-input name="number" ng-model="data.creditcard.number" card-type="data.creditcard.type" required></card-number-input>
  <card-expiry-input name="expiration" ng-model="data.creditcard.expiration" ></card-expiry-input>
  <card-cvc-input name="cvv2" ng-model="data.creditcard.cvv2"></card-cvc-input>
  data: {{data.creditcard}}

User enters the data and model results in:
{"type":"visa","number":"4111111111111111","expiration":{"month":12,"year":2018},"cvv2":"123"}

User saves the form, but decides later to edit the information. The model hasn't changed and looks exactly as above, however, neither the CVC nor the Expiry field show the model values.

I'd like all fields to show the data entered before.
What am I missing?

Thanks...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions