I'm working with an AngularJS directive where the HTML template is compiled within the linker function.
var htmlTemplate = '<img ng-src="~/img/logos/{{account.Logo}}" width="45" height="35" />'
var linker = function (scope, element) {
element.html(htmlTemplate).show();
$compile(element.contents())(scope);
};
However, I'm facing an issue where the directive is not recognizing the '~' sign in the image source path.
Any suggestions on how to solve this?