AngularJS a directive

definition and usage

AngularJS modifies <a> element's default behavior.

when the user clicks on an element with an empty href attribute <a> AngularJS prevents the page from reloading when elements are bound.

Example

Links within AngularJS applications do not reload the page:

<a href="">Click Me!</a>
<div ng-app="">
    <a href="">Click Me!</a>
</div>

Try It Yourself