html - ionic dropdown select issue -
i'm new ionic , have problem ionic dropdown select component.i've implemented dropdown , want display option selected in label.how can this? @ moment can select option , that's it. want show selected option in label.
here want display option selected in "select bank label".
this how implemented dropdown select component
<label><h4><b>bank name*</b></h4></label> <div class="list"> <div class="item item-input item-select"> <div class="input-label"> select bank </div> <select> <option>bank1</option> <option>bank2</option> <option>bank3</option> </select> </div> </div>
add model select. create variable on scope can use elsewhere.
<select ng-model="myvariable">
in controller can set starting value.
$scope.myvariable = 'hello, world!';
then can display in html so.
<div>{{myvariable}}</div>
i suggest reading ionic framework , angular js documentation. :)
Comments
Post a Comment