javascript - Loopback & Angular : How to set default value in form -
so hit error today when tried set value in form.
this form:
<div class="list"> <label class="item item-input"> <input type="text" ng-model="user.isactive" value="false"> </label> </div>
the value didn't appear when put ng-model="user.isactive"
in <input>
.
please looking code. thanks
use ng-init
<input type="text" ng-model="user.isactive" ng-init="user.isactive='yourvalue'">
Comments
Post a Comment