rangoli colam

rangoli colam

  • NA
  • 7
  • 325

form html with style tags in javascript return function

Dec 3 2018 5:41 AM
 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)