Angularjs 角度JS和raido按钮

Angularjs 角度JS和raido按钮,angularjs,radio-button,Angularjs,Radio Button,有人知道如何在默认情况下使用Angular JS检查单选按钮吗?我试过了 <input type= "radio" value= "point" checked= "checked"></input> <input type= "radio" value= "range"></input> 这很管用,但当我尝试在混合中添加一点角度JS时 <input type= "radio" value= "point" ng-model= "mod

有人知道如何在默认情况下使用Angular JS检查单选按钮吗?我试过了

<input type= "radio" value= "point" checked= "checked"></input>
<input type= "radio" value= "range"></input>

这很管用,但当我尝试在混合中添加一点角度JS时

<input type= "radio" value= "point" ng-model= "mode" checked= "checked"></input>
<input type= "radio" value= "range" ng-model= "mode"></input>

这不起作用了。。当我加载页面时,默认情况下不再检查任何内容。有人知道angular如何确保默认选中某些内容吗?我需要检查一些东西,因为加载页面时显示的html最终将绑定到选中的两个单选按钮中的任何一个


谢谢

ng型号
设置为要检查的收音机的

<input type= "radio" value= "point" ng-model= "mode"></input>
<input type= "radio" value= "range" ng-model= "mode"></input>

$scope.mode = "point";

$scope.mode=“点”;

在控制器中使用不同的模型并将它们设置为true。例如$scope.point\u mode=true类似的内容?@Zack-将模型设置为要检查的值,例如
point
@Zack yes,但最好使用tymeJVs解决方案。跟进问题,有没有办法使用Angular JS隐藏div元素,直到选中range单选按钮