Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix some minor spelling errors #22

Merged
merged 1 commit into from
Sep 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/pages/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To define a property, annotate a variable with `@prop`:
User shownUser;
```

Properties can be given befault values by adding an initializer to the variable.
Properties can be given default values by adding an initializer to the variable.
The default value doesn't have to be a constant.

#### Reactive assignments
Expand Down Expand Up @@ -71,7 +71,7 @@ the values that they depend on have changed.
</script>
```

Only variables that directly apear within the `$:` block will become dependencies of
Only variables that directly appear within the `$:` block will become dependencies of
the reactive statement. Variables that might be used in called methods are not considered,
for instance.

Expand Down Expand Up @@ -173,7 +173,7 @@ Additional conditions can be added with `{:else if expression}`, optionally
ending in an `{:else}` clause.

```html
#if porridge.temperature > 100}
{#if porridge.temperature > 100}
<p>too hot!</p>
{:else if 80 > porridge.temperature}
<p>too cold!</p>
Expand Down Expand Up @@ -250,7 +250,7 @@ type `Stream<T>`. The type of the variable `x` is again inferred to `ZapSnapshot
Text written in zap components is escaped, so binding a string containing HTML
characters would escape characters like `<`and `>` in the component.

The `{@html }` block can be used to insert a Dart-expression __without any sanitazion__.
The `{@html }` block can be used to insert a Dart-expression __without any sanitization__.
For example, `{@html "<script>alert('hacks');</script>"}` _will_ do what you may fear
it does. `{@html}` blocks should not be used with untrusted data.
Please note that the expression inside a block must be a full HTML node - things like
Expand Down Expand Up @@ -299,7 +299,7 @@ Modifiers can be added to the event stream with the `|` character:
The following modifiers are available:

- `preventDefault`: calls `event.preventDefault()` before running the handler.
- `stopPropagation`: calls `event.stopProgataion()`, preventing the event from
- `stopPropagation`: calls `event.stopPropagation()`, preventing the event from
reaching the next element.
- `passive`: TODO this is currently a noop
- `capture`: Fires the handler during the _capture_ phase instead of the _bubbling_
Expand All @@ -315,7 +315,7 @@ It is possible to have multiple event listeners for the same event.
#### `bind:property`

Data ordinarily flows down, from parent to child. The `bind:` directive allows
data to flow the other way, from chil to parent. Most bindings are specific to
data to flow the other way, from child to parent. Most bindings are specific to
particular elements.

The simplest bindings reflect the value of a property, such as `input.value`:
Expand Down
Loading