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

Commit 833e60a

Browse files
cwatzlpetebacondarwin
authored andcommitted
docs(ngHref): close the <a> tags in examples
Self closing <a> tags in the examples given make no sense because they won't show up in the browser (and I think aren't even allowed according to HTML specs). I've seen this confuse people over at stackoverflow.com who tried to copy/paste those examples. Closes #8488
1 parent 1bb4e87 commit 833e60a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ng/directive/attrs.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
*
1818
* The wrong way to write it:
1919
* ```html
20-
* <a href="http://www.gravatar.com/avatar/{{hash}}"/>
20+
* <a href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
2121
* ```
2222
*
2323
* The correct way to write it:
2424
* ```html
25-
* <a ng-href="http://www.gravatar.com/avatar/{{hash}}"/>
25+
* <a ng-href="http://www.gravatar.com/avatar/{{hash}}">link1</a>
2626
* ```
2727
*
2828
* @element A

0 commit comments

Comments
 (0)