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
Your selection is {{class}}

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

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-2024 All rights reserved worldwide Privacy Policy Disclaimer