I am trying to create aria-current attribute in an anchor only if the anchors href is equal to the current windows path. Basically, I want aria-current="page" IF the anchor in question has an href equal to the window in views path. And I do not want to create an aria-current attribute if the anchor in question does not have an href equal to the window in view path.
Is there a way to write an conditional statement inline that will create or not create an attribute in AngularJS (Angular1)?