I am having hard time figuring out how to work with radio buttons in Angular. Here is my fiddle: http://jsfiddle.net/3bp2t4ma/
<div class="form-row full-width pull-left text-center check-as">
<label> <input name="ticket" type="radio"
ng-model="ticketType.type" ng-value="query"> Query
</label> <label class="complaint-check"> <input name="ticket"
type="radio" ng-model="tickeType.type" ng-value="complaint">
Complaint
</label>
</div>
{{ ticketType | json }}
And javascript:
var myApp = angular.module('myApp', []);
function Main($scope) {
$scope.ticketType={type: 'query'};
}
Any idea why ticketType becomes empty when I click on radio button?