【发布时间】:2016-08-18 10:47:52
【问题描述】:
这是我的代码。当我提交 switchColors 时,服务器为其返回 undefined。这是怎么回事?
另外我应该如何在我的控制器中启动 $scope.swichColors?目前我有 $scope.switchColors = '';
<label class="radio-inline">
<input type="radio" ng-model="$parent.switchColors" value = "yes" >Yes</input>
</label>
<label class="radio-inline">
<input type= "radio" ng-model = "$parent.switchColors" value = "no" >No</input>
</label>
【问题讨论】:
标签: javascript html angularjs user-interface radio-button