Skip to content

Commit 46b5a4f

Browse files
committed
added styles to code
1 parent 09c839e commit 46b5a4f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,27 @@ All fields must be `type='tel'` in order to support spacing and additional chara
1616

1717
**Credit Card Formater**
1818
* add `ccNumber` directive:
19-
```
19+
```html
2020
<input id="cc-number" type="tel" autocomplete="cc-number" ccNumber>
2121
```
2222

2323
**Expiration Date Formater**
2424
Will support format of MM/YY or MM/YYYY
2525
* add `ccExp` directive:
26-
```
26+
```html
2727
<input id="cc-exp-date" type="tel" autocomplete="cc-exp" ccExp>
2828
```
2929

3030
**CVC Formater**
3131
* add `ccCvc` directive:
32-
```
32+
```html
3333
<input id="cc-cvc" type="tel" autocomplete="off" ccCvc>
3434
```
3535

3636
### Validation
3737
Current only Model Validation is supported.
3838
To implement, import the validator library and apply the specific validator on each form control
39-
```
39+
```javascript
4040
import { CreditCardValidator } from '../../src/validators/credit-card.validator';
4141

4242
@Component({

0 commit comments

Comments
 (0)