Radio Buttons Default Selection

Default Selection of radio buttons can be done by managing the property value.

Three Four Five

Your selection is {{class}}
<div ng-app="my_app" ng-controller="my_ctrl">
<input type=radio ng-model="class" value="Three" > Three 
<input type=radio ng-model="class" value="Four" > Four
<input type=radio ng-model="class" value="Five"> Five
<br><br>
Your selection is {{class}}
</div>

<script>
var app = angular.module('my_app', []);
app.controller('my_ctrl', function($scope) {
$scope.class='Four' // default selection     
});
</script>


Radio buttons

Angular Home

Post your comments , suggestion , error , requirements etc here

We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2021 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer