Angular Creditcard Flag directive for AngularJS

Angular Creditcard Flag directive for AngularJS

AngularJS directive to automatically show credit card flags while typing.This directive will look for attribute “creditcard-flag” on an input field, will add a class card-flag and a SPAN with a class “_flag” after it, when you start typing a number, it will add a class corresponding to the Credit Card brand.

Leave a Reply