1
Answer

form html with style tags in javascript return function

Photo of rangoli colam

rangoli colam

6y
419
1
 Cannot apply the styles for span tag from javascript
 
<span ng-bind-html="insuranceCodeText(insuranceMethod.insrurance_Code)"></span>
 
$scope.insuranceCodeText = function (value) {
return 'Insurance Code: ' + '<span style="font-weight:bold;">' + value + '</span>'
}
$scope.insuranceNameText = function (value) {
return 'Insurance Name: ' + '<span style="font-weight:bold">' + value + '</span>'
}

Answers (1)