Topic: Mdb Select Form reset replaces placeholder to empty value
kausar.kapadia pro asked 6 years ago
<div style="width: 200px; padding: 20px;"> MdbSelect: <mdb-select [options]="testData" name="testSelect" placeholder="Choose a type" customClass="filled-in" formControlName="testSelect"></mdb-select> </div>
toggleSelectVals() { this.toggle=!this.toggle; this.testData= (this.toggle?this.tData1:this.tData2); if (this.toggle) { this.tForm.get('testSelect').setValue(1); // this.tForm.get('nSelect').setValue(2); } else { this.tForm.get('testSelect').reset(); } }
kausar.kapadia pro answered 6 years ago
reachfrq pro commented 6 years ago
Working fine. Thank you. How to deploy this server.js in aws ec2 instance. Could you please provide any link?Arkadiusz Idzikowski staff answered 6 years ago
Subrata Paul pro answered 6 years ago
Helmar Bachle answered 6 years ago
Arkadiusz Idzikowski staff answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 6.2.3
- Device: Windows, Mac Laptop and desktop
- Browser: Chrome, firefox
- OS: Windows, MacOS
- Provided sample code: No
- Provided link: No