An Angularjs attribute directive that matches the href / ngHref of an element and comparing it to the current url. It adds the 'active' class or whatever class to that element upon match. A function can run upon success match also.