Skip to content

Commit 43a6b7f

Browse files
committed
docs: detail delimiters for actions
1 parent 865a15c commit 43a6b7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/_guide/actions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ class HelloWorldElement extends HTMLElement {
6868
The actions syntax follows a pattern of `event:controller#method`.
6969

7070
- `event` must be the name of a [_DOM Event_](https://developer.mozilla.org/en-US/docs/Web/Events), e.g. `click`.
71+
- `:` is the required delimiter between the `event` and `controller`.
7172
- `controller` must be the name of a controller ascendant to the element.
73+
- `#` is the required delimieter between the `controller` and `method`.
7274
- `method` (optional) must be a _public_ _method_ attached to a controller's prototype. Static methods will not work.
7375

7476
If method is not supplied, it will default to `handleEvent`.

0 commit comments

Comments
 (0)