Comments (2)
There is already a way to implement this, just use CreditCard
class from a library, but I will also put this into a projects roadmap because this seems not really hard to do and will not break anything.
public type$ = defer(() => this.demoForm.get('creditCard').valueChanges)
.pipe(map((num: string) => CreditCard.cardType(num)));
<small class="text-muted" *ngIf="type$ | async as type">
<span class="cc-brand">{{type}}</span>
</small>
from angular-cc-library.
Implemented in v2.0.0
from angular-cc-library.
Related Issues (20)
- Angular 12 support please? HOT 2
- Request for Angular v13 Support HOT 2
- Angular 14 Support HOT 5
- Not compatible with Angular 15 HOT 7
- Compatibility issues with Angular 14 HOT 6
- angular-cc-library is not compatible with angular v16 HOT 2
- Looking for maintainers HOT 20
- Roadmap HOT 1
- v2 broke compatibilty with Ionic HOT 1
- Cvv & Exp date not validating HOT 2
- Error in ng build --prod HOT 2
- Add supporting two inputs for expiry HOT 1
- Support Angular 10 HOT 6
- Provide pipes HOT 1
- Error in credit card validation HOT 1
- cc-exp autocomplete does not work on safari HOT 2
- Only arrays and iterables are allowed Error HOT 1
- Cannot find module 'angular-cc-library' or its corresponding type declarations. HOT 1
- Formcontrol issue HOT 1
- Missing releases !! HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cc-library.