change property and event to use camel case:
* some-property -> someProperty * some-event -> someEvent Closes #6609
This commit is contained in:
parent
f9fc524a74
commit
0894318f50
|
@ -232,7 +232,7 @@ are always in the form of `property-name` which is assigned an `expression`. The
|
|||
<table>
|
||||
<tr>
|
||||
<th>Short form</th>
|
||||
<td><pre><some-element [some-property]="expression"></pre></td>
|
||||
<td><pre><some-element [someProperty]="expression"></pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Canonical form</th>
|
||||
|
@ -243,8 +243,8 @@ are always in the form of `property-name` which is assigned an `expression`. The
|
|||
|
||||
Where:
|
||||
* `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
|
||||
dash-case is converted into camel-case `someProperty`.
|
||||
* `someProperty` or `some-property` (escaped with `[]` or `bind-`) is the name of the property on `some-element`. If
|
||||
the property is dash-case, it will be converted into camel-case `someProperty`.
|
||||
* `expression` is a valid expression (as defined in section below).
|
||||
|
||||
Example:
|
||||
|
@ -477,7 +477,7 @@ Binding events allows wiring events from DOM (or other components) to the Angula
|
|||
<table>
|
||||
<tr>
|
||||
<th>Short form</th>
|
||||
<td><pre><some-element (some-event)="statement"></pre></td>
|
||||
<td><pre><some-element (someEvent)="statement"></pre></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Canonical form</th>
|
||||
|
@ -487,8 +487,8 @@ Binding events allows wiring events from DOM (or other components) to the Angula
|
|||
|
||||
Where:
|
||||
* `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
|
||||
dash-case is converted into camel-case `someEvent`.
|
||||
* `someEvent` or `some-event` (escaped with `()` or `on-`) is the name of the event `some-event`. If the event is
|
||||
dash-case, it will be converted into camel-case `someEvent`.
|
||||
* `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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue