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


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

Ferdi Pekçıkmaz pro asked 7 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)]="customer.name" #name="ngModel" mdbActive required> </div> </div> in ts updateRecord(cust:Customer) { this.clearForm(); this.customer.name =cust.name; } What is wrong? label  does not automatically goes up.

Dawid Adach pro answered 7 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.

FREE CONSULTATION

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

Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: No
  • Provided link: No