mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-10 17:15:26 +08:00
doc(api): fix grammar in a directive description
- Add missing words. - Simplify text.
This commit is contained in:
committed by
Pete Bacon Darwin
parent
bd478db770
commit
d206f3d2ad
@@ -6,10 +6,10 @@
|
||||
* @restrict E
|
||||
*
|
||||
* @description
|
||||
* Modifies the default behavior of html A tag, so that the default action is prevented when href
|
||||
* attribute is empty.
|
||||
* Modifies the default behavior of the html A tag so that the default action is prevented when
|
||||
* the href attribute is empty.
|
||||
*
|
||||
* The reasoning for this change is to allow easy creation of action links with `ngClick` directive
|
||||
* 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="model.$save()">Save</a>`
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user