Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 00b60f2

Browse files
committed
docs(a): remove outdated practice
Using a tags as buttons is bad for accessibility and usability
1 parent 18263f1 commit 00b60f2

File tree

1 file changed

+2
-4
lines changed
  • src/ng/directive

1 file changed

+2
-4
lines changed

src/ng/directive/a.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@
66
* @restrict E
77
*
88
* @description
9-
* Modifies the default behavior of the html A tag so that the default action is prevented when
9+
* Modifies the default behavior of the html a tag so that the default action is prevented when
1010
* the href attribute is empty.
1111
*
12-
* This change permits the easy creation of action links with the `ngClick` directive
13-
* without changing the location or causing page reloads, e.g.:
14-
* `<a href="" ng-click="list.addItem()">Add Item</a>`
12+
* For dynamically creating `href` attributes for a tags, see the {@link ng.ngHref `ngHref`} directive.
1513
*/
1614
var htmlAnchorDirective = valueFn({
1715
restrict: 'E',

0 commit comments

Comments
 (0)