Topic: mdbInputDirective in MDB Ver 7.1.0
itay
pro
asked 5 years ago
- I have 111 mdbInputDirective in my code. Should I convert them to mdbInput and mdbValidate ?
- Most of them contain both [mdbValidate]="false" mdbInputDirective. Should I convert both to just mdbInput ?
Arkadiusz Idzikowski
staff
answered 5 years ago
In old validation mdbValidate was an input of mdbInputDirective used to disable/enable validation. Now mdbValidate is a separate directive that can be used to add validation to form elements.
If you need input without validation use mdbInput. If you want to add validation to it, add mdbValidate directive.
itay
pro
answered 5 years ago
Since I use my custom validation, I used [mdbValidate]="false"
I also use mdbInputDirective.
Does it mean that I can drop [mdbValidate]="false" and replace mdbInputDirective with just mdbInput ?
Arkadiusz Idzikowski
staff
answered 5 years ago
Dear mdb2,
1. We encourage you to implement new method. mdbInputDirective will be removed from the package in the future (we will provide information when exactly).
2. You need mdbInput to add material look and animations to input and textarea elements and mdbValidate to add validation styles. You can find more information in our validation documentation, please let me know if you encounter any problems.
Regards,
Arek
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.0.0
- Device: NA
- Browser: NA
- OS: NA
- Provided sample code: No
- Provided link: No