mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-09 23:34:42 +00:00
doc(api): fix grammar in a directive description
- Add missing words. - Simplify text.
This commit is contained in:
parent
d17aa84be1
commit
e1f103a8e4
1 changed files with 3 additions and 3 deletions
|
|
@ -6,10 +6,10 @@
|
||||||
* @restrict E
|
* @restrict E
|
||||||
*
|
*
|
||||||
* @description
|
* @description
|
||||||
* Modifies the default behavior of html A tag, so that the default action is prevented when href
|
* Modifies the default behavior of the html A tag so that the default action is prevented when
|
||||||
* attribute is empty.
|
* 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.:
|
* without changing the location or causing page reloads, e.g.:
|
||||||
* `<a href="" ng-click="model.$save()">Save</a>`
|
* `<a href="" ng-click="model.$save()">Save</a>`
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue