Which when hovered over shows nothing whereas this works" /> Which when hovered over shows nothing whereas this works" /> Which when hovered over shows nothing whereas this works"/>

Ng-href Not Working

501 Views Asked by At

I have this code

<a ng-href="{{vm.user.quicklinks2}}" ><image src="./images/potato.jpeg"></a>

Which when hovered over shows nothing

whereas this works

<a href="{{vm.user.quicklinks2}}" ><image src="./images/potato.jpeg"></a>

And i have set $compileProvider in my config as follows

$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|chrome-extension):/);

I have looked everywhere and have not been able to find a solution. {{vm.user.quicklinks2}} returns a correct value.

1

There are 1 best solutions below

0
Pax Obi On

just combine the two

is a normal link with href and nothing about AngularJs