I am trying to use "ng-bind-html
" directive inside "title
" tag to render currency value with currency symbol but the expression is not evaluating.
This is how I am tring:
$scope.salary= 10000;
$scope.currencySymbol = '€';//€
<div title="{{ng-bind-html= 'salary |currency:(currencySymbol+' '): 0'}}"> //This is not working
<span ng-bind-html="salary |currency:(currencySymbol+' '): 0"> </span> //working fine and renders €10000
Its working fine when I display inside <span>
tag but I want to display the same formatted value in <title>
tag as well.
So wondering how to call this "ng-bind-html
" inside "title
" tag to display the same output as it is in <span>
tag?