Posts by Julio da Silva • 11 points
2 posts
-
0
votes4
answers1423
viewsA: Materialize label does not rise when I populate an input
To update call the Materialize.updateTextFields() method; after updating the values, but call inside a setTimeout(() => {}, 0) to ensure that you called the update after the values are updated.…
-
1
votes4
answers1423
viewsA: Materialize label does not rise when I populate an input
One way out is to put an ngClass on the label as the example below <label for="name" [ngClass]="{'active': user.name }">Name</label>