change property and event to use camel case:

* some-property -> someProperty
* some-event -> someEvent

Closes #6609
This commit is contained in:
BeastCode 2016-01-20 21:24:51 -08:00 committed by Misko Hevery
parent f9fc524a74
commit 0894318f50
1 changed files with 6 additions and 6 deletions

View File

@ -232,7 +232,7 @@ are always in the form of `property-name` which is assigned an `expression`. The
<table> <table>
<tr> <tr>
<th>Short form</th> <th>Short form</th>
<td><pre>&lt;some-element [some-property]="expression"&gt;</pre></td> <td><pre>&lt;some-element [someProperty]="expression"&gt;</pre></td>
</tr> </tr>
<tr> <tr>
<th>Canonical form</th> <th>Canonical form</th>
@ -243,8 +243,8 @@ are always in the form of `property-name` which is assigned an `expression`. The
Where: Where:
* `some-element` can be any existing DOM element. * `some-element` can be any existing DOM element.
* `some-property` (escaped with `[]` or `bind-`) is the name of the property on `some-element`. In this case the * `someProperty` or `some-property` (escaped with `[]` or `bind-`) is the name of the property on `some-element`. If
dash-case is converted into camel-case `someProperty`. the property is dash-case, it will be converted into camel-case `someProperty`.
* `expression` is a valid expression (as defined in section below). * `expression` is a valid expression (as defined in section below).
Example: Example:
@ -477,7 +477,7 @@ Binding events allows wiring events from DOM (or other components) to the Angula
<table> <table>
<tr> <tr>
<th>Short form</th> <th>Short form</th>
<td><pre>&lt;some-element (some-event)="statement"&gt;</pre></td> <td><pre>&lt;some-element (someEvent)="statement"&gt;</pre></td>
</tr> </tr>
<tr> <tr>
<th>Canonical form</th> <th>Canonical form</th>
@ -487,8 +487,8 @@ Binding events allows wiring events from DOM (or other components) to the Angula
Where: Where:
* `some-element` Any element which can generate DOM events (or has an angular directive which generates the event). * `some-element` Any element which can generate DOM events (or has an angular directive which generates the event).
* `some-event` (escaped with `()` or `on-`) is the name of the event `some-event`. In this case the * `someEvent` or `some-event` (escaped with `()` or `on-`) is the name of the event `some-event`. If the event is
dash-case is converted into camel-case `someEvent`. dash-case, it will be converted into camel-case `someEvent`.
* `statement` is a valid statement (as defined in section below). * `statement` is a valid statement (as defined in section below).
If the execution of the statement returns `false`, then `preventDefault`is applied on the DOM event. If the execution of the statement returns `false`, then `preventDefault`is applied on the DOM event.