docs(core): updating some errors in 01_templates
Signed-off-by: Josh Kurz <jkurz25@gmail.com> Closes #1529
This commit is contained in:
parent
cd953ceb48
commit
14988d4415
|
@ -431,7 +431,7 @@ syntax is preferable.
|
||||||
|
|
||||||
```
|
```
|
||||||
<ul>
|
<ul>
|
||||||
<li template="for; #person; in=people; #i=index;">{{i}}. {{person}}<li>
|
<li template="for; #person; of=people; #i=index;">{{i}}. {{person}}<li>
|
||||||
</ul>
|
</ul>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -489,7 +489,7 @@ Where
|
||||||
|
|
||||||
|
|
||||||
NOTE: the `template` attribute must be present to make it clear to the user that a sub-template is being created. This
|
NOTE: the `template` attribute must be present to make it clear to the user that a sub-template is being created. This
|
||||||
goes along the philosophy that the developer should be able to reason about the template without understanding the
|
goes along with the philosophy that the developer should be able to reason about the template without understanding the
|
||||||
semantics of the instantiator directive.
|
semantics of the instantiator directive.
|
||||||
|
|
||||||
|
|
||||||
|
@ -512,14 +512,14 @@ 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 `bind-`) is the name of the event `some-event`. In this case the
|
* `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`.
|
dash-case is 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.
|
||||||
|
|
||||||
By default, angular only listens to the element on the event, and ignores events which bubble. To listen to bubbled
|
By default, angular only listens to the element on the event, and ignores events which bubble. To listen to bubbled
|
||||||
events (as in the case of clicking on any child) use the bubble option (`(^event)` or `on-bubble-event`) as shown
|
events (as in the case of clicking on any child) use the bubble option (`(event)` or `on-bubble-event`) as shown
|
||||||
bellow.
|
below.
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
Loading…
Reference in New Issue