Topic: Floating label doesn't work with routing?
Matt Honeycutt asked 7 years ago
Witold Tkaczyk answered 7 years ago
mdbActive
attribute at your input. if you have and it still doesn't seem to work properly you can try with adding to the related label [ngClass]="{ 'active': username }"
. This should fix the problem.
<div class="md-form"> <input [value]="username"type="text"id="form6"class="form-control"mdbActive> <label [ngClass]="{ 'active': username }"for="form6">{{username}}</label> </div>
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Austin Jensen commented 7 years ago
I am having the same issue in Angular 5 utilizing the routing module on MDB Angular 4.3.7. I am attempting to use the default example given in the documentation.