I have a radio button, which sets the value of True
or False
based on the value of transaction type
The demo can be found here
The problem is when I click on any of the radio button, the value of $scope.transaction.debit
does not change
My javascript code is
var app = angular.module('myApp', []);
app.controller("MainCtrl", function($scope){
$scope.transaction = {};
$scope.transaction.debit=undefined;
console.log('controller initialized');
});
Please let me know what I am doing wrong.
Also, I do not want to use Angular-UI
or AngularStrap
for this purpose, unless no other option is available.
bootstrap3
+angular-strap
, but someone (or you in future) may look for it. – Wille