0
我有兩個單選按鈕:角度引導單選按鈕不觸發功能
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary active">
<input type="radio" name="options" id="server"
autocomplete="off" checked ng-model="app.callback_url"
ng-change="patchApp({callback_url:app.callback_url},app.callback_url)">
Server-side Callback
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="client" autocomplete="off"
ng-model="app.callback_url"
ng-change="patchApp({callback_url:app.callback_url},app.callback_url)">
Client-side Callback
</label>
</div>
他們應該被觸發patchApp
功能:ng-change="patchApp({callback_url:app.callback_url},app.callback_url)
然而,他們不知道。我也試過ng-click="patchApp({callback_url:app.callback_url},app.callback_url)
,那也沒有觸發這個功能。
任何想法,我要去哪裏錯了?它適用於下拉菜單:
<select class="form-control col-md-7 col-xs-12" name="platform"
ng-model="app.platform" ng-change="patchApp({platform:app.platform},app.platform)">
<option value="ios">iOS</option>
<option value="android">Android</option>
<option value="unity">Unity</option>
</select>