I need to add conditional Class to Form Field based on control property.
for Ex : i have in my controller $scope.isIssueFixed = true;
and my formly object is -
$scope.formly = {
className: 'col-xs-6',
key: 'products.device[0].deviceCommonName',
type: 'input',
templateOptions: {
label: 'Common Device Name'
}
Now how we can add a condition class to above formly field,
$scope.isIssueFixed?'ok':'No'; in formly object?
Hi,
I need to add conditional Class to Form Field based on control property.
for Ex : i have in my controller $scope.isIssueFixed = true; and my formly object is - $scope.formly = { className: 'col-xs-6', key: 'products.device[0].deviceCommonName', type: 'input', templateOptions: { label: 'Common Device Name' }
Now how we can add a condition class to above formly field, $scope.isIssueFixed?'ok':'No'; in formly object?