File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,27 +16,27 @@ All fields must be `type='tel'` in order to support spacing and additional chara
16
16
17
17
** Credit Card Formater**
18
18
* add ` ccNumber ` directive:
19
- ```
19
+ ``` html
20
20
<input id =" cc-number" type =" tel" autocomplete =" cc-number" ccNumber >
21
21
```
22
22
23
23
** Expiration Date Formater**
24
24
Will support format of MM/YY or MM/YYYY
25
25
* add ` ccExp ` directive:
26
- ```
26
+ ``` html
27
27
<input id =" cc-exp-date" type =" tel" autocomplete =" cc-exp" ccExp >
28
28
```
29
29
30
30
** CVC Formater**
31
31
* add ` ccCvc ` directive:
32
- ```
32
+ ``` html
33
33
<input id =" cc-cvc" type =" tel" autocomplete =" off" ccCvc >
34
34
```
35
35
36
36
### Validation
37
37
Current only Model Validation is supported.
38
38
To implement, import the validator library and apply the specific validator on each form control
39
- ```
39
+ ``` javascript
40
40
import { CreditCardValidator } from ' ../../src/validators/credit-card.validator' ;
41
41
42
42
@Component ({
You can’t perform that action at this time.
0 commit comments