I want to set some default value to radio button, as per the value particular radio button should be selected. For this I created a directive radioControlDir in (controlDirectives.js) file.
function controlDir()
{
return {
transclude: true,
restrict: 'E',
scope: {
ngModel: '=',
queObj: '='
},
link: function (scope, element, attrs)
{
if(angular.isUndefined(scope.ngModel))
{
scope.ngModel = 'Y';
}
}
};
}
scope.queObj._pageAttributes.defaultValue has value that will be set if ngmodel do not have value. Other directive for text and select is working fine.