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

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -