docs(a): remove outdated practice

Using a tags as buttons is bad for accessibility and usability
This commit is contained in:
Martin Staffa
2016-10-19 12:12:56 +02:00
parent 18263f1c52
commit 00b60f2f03
+2 -4
View File
@@ -6,12 +6,10 @@
* @restrict E
*
* @description
* Modifies the default behavior of the html A tag so that the default action is prevented when
* Modifies the default behavior of the html a tag so that the default action is prevented when
* the href attribute is empty.
*
* This change permits the easy creation of action links with the `ngClick` directive
* without changing the location or causing page reloads, e.g.:
* `<a href="" ng-click="list.addItem()">Add Item</a>`
* For dynamically creating `href` attributes for a tags, see the {@link ng.ngHref `ngHref`} directive.
*/
var htmlAnchorDirective = valueFn({
restrict: 'E',