Topic: mdbInput unable to use ngModel
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][1]
<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>
rnelson11 pro premium priority answered 3 years ago
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!
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- 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
Arkadiusz Idzikowski staff commented 3 years ago
@rnelson11 Thank you for reporting this problem, we will take a closer look at that.