How can I change the value of the href-Attribute based on the current path?
My if clause in AngularJS looks like this:
if (newPath.indexOf('test') > -1) {
// change the value of the href-Attribute
} else {
// don't change the value of the href-Attribute
}
My HTML looks like this:
<li>
<a aria-expanded="false" role="button" href="/path1/path2/path4">Downloads</a>
</li>