angular-card
Angular directive for card https://github.com/jessepollak/card
Demo
http://jessepollak.github.io/card/
Installation
npm
npm install angular-card
Usage
name
is required for form and inputs (you can use any unique name)
width
is optional, it can be set on the element or the options object (defaults to 350)
angular;
Using multiple fields for card expiry
Simply use 2 input fields for the expiry, and pass either month
, or year
to the directive.
<input placeholder="MM" type="text" name="CardExpiryMonth" card-expiry="month" data-ng-model="card.expiryMonth" /><input placeholder="YYYY" type="text" name="CardExpiryYear" card-expiry="year" data-ng-model="card.expiryYear" />