Topic: mdb-angular does not automatically goes up input on two way binding

Ferdi Pekçıkmaz pro asked 6 years ago

in html <div class="col-md-12"> <div class="md-form form-sm"> <label for="name" class="active">Ad / Soyad veya Şirket Adı</label> <input class="form-control" type="text" id="name" name="name" [(ngModel)]="" #name="ngModel" mdbActive required> </div> </div> in ts updateRecord(cust:Customer) { this.clearForm();; } What is wrong? label  does not automatically goes up.

Dawid Adach pro answered 6 years ago

Dear Ferdi, unfortunately, please programmatically add class "active" to the label for the input while changing it's value.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No