(1)、

使用 ng-checked 即可。

 
<label class="radio-inline">
  <input name="display" type="radio" value="true" ng-model="institution.display" ng-checked="true" required>
    显示
</label>
<label class="radio-inline">
  <input name="display" type="radio" value="false" ng-model="institution.display">
  隐藏
</label>


(2)、

双向绑定
双向绑定
双向绑定
重要的说三遍~~~

$scope.institution.display = "true";

即ng-model和value相同即可。

 

 

(https://segmentfault.com/q/1010000003712548)



相关文章:

  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2022-02-10
  • 2021-07-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-22
  • 2022-12-23
相关资源
相似解决方案