Topic: mdbInput unable to use ngModel
rnelson11 priority asked 1 year ago
Expected behavior To be able to bind input fields to ngModel and have 'active' class added to input. Actual behavior Input is missing the 'active' class when the ngModel and value have data.
Resources (screenshots, code snippets etc.) Angular Variable:
testVar = 'happy gilmore'; //typescript variable![enter image description here] <mdb-form-control> <input mdbInput type="text" id="testVar" class="form-control" [value]="testVar" [(ngModel)]="testVar" /> <label mdbLabel class="form-label" for="testVar">testVar </label> </mdb-form-control>
This issue appears to be fixed in Beta 7. I have already updated to the latest update, and verified that my work around is no longer needed. Thanks!
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB Angular
- MDB Version: MDB5 1.0.0-beta5
- Device: PC
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: No