Topic: mdb-select with angular
Whltepanda pro asked 7 years ago
Dear Sir,
I buy pro license https://mdbootstrap.com/product/material-design-for-bootstrap-pro/
Then I test with angluar ng-option to add option value but it cannot display option value list after click the select box.
The below code is the html that I copy from chrome inscpection.
<div class="select-wrapper mdb-select ng-pristine ng-untouched ng-valid ng-empty"><span class="caret">▼</span><input type="text" class="select-dropdown" readonly="true" data-activates="select-options-e58ec23f-7fcf-4d7a-952d-e604656c83c6" value="Choose your option"><ul id="select-options-e58ec23f-7fcf-4d7a-952d-e604656c83c6" class="dropdown-content select-dropdown" style="width: 382px; position: absolute; top: 0px; left: 0px; opacity: 1; display: none;"><li class="disabled"><span class="filtrable">Choose your option</span></li></ul><select ng-model="selected" class="mdb-select ng-pristine ng-untouched ng-valid ng-empty initialized" name="select_user_role" id="select_user_role" ng-options="key as key.name for key in user_role track by key.id"><option value="" disabled="" selected="selected" class="">Choose your option</option><option label="Admin" value="2">Admin</option><option label="Officer" value="3">Officer</option><option label="User" value="4">User</option></select></div>
Could you please suggest me what is wrong.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: Yes
- Provided link: No
Sebastian Kaczmarek staff pro premium commented 7 years ago
Which version of Angular do you use?Sebastian Kaczmarek staff pro premium commented 7 years ago
Which version of Angular do you use?Whltepanda pro commented 7 years ago
verision 1.5Sebastian Kaczmarek staff pro premium commented 7 years ago
Unfortunately, we do not support AngularJS (version 1.x). The recommended versions are Angular 2 or Angular 4Rodrigo Vassia commented 6 years ago
Could you solve it?
Bartłomiej Malanowski staff pro premium commented 6 years ago
@Rodrigo Vassia, we still don't support Angular JS