I am trying to follow the advice from https://developers.google.com/web/tools/lighthouse/audits/noopener and https://mathiasbynens.github.io/rel-noopener/ and am trying to set the value for rel
to be noreferrer noopener
. The thing is that I cannot set the href
value as it is dynamic. I need to make a Api call to my internal endpoint to get the url. As such I wonder whether the following will still work
<a ng-click="getUrl()" rel="noreferrer noopener">
<i class="action icon view"></i>
</a>
var getUrl = function() {
// call some endpoint, on success
$window.open(url, '_blank');
}
Is there still any value on setting rel
value ?