Skip to content

Commit

Permalink
Fix documentation code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace committed Dec 14, 2023
1 parent 8ff2a10 commit 07f6ec4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions addon/src/components/animated-each.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export interface AnimatedEachSignature<T> {

/**
A drop in replacement for `{{#each}}` that animates changes to a list.
```hbs
{{#animated-each items use=transition duration=2000 as |item|}}
<div data-test-item={{item}} onclick={{action removeItem item}}>
Expand Down
1 change: 1 addition & 0 deletions addon/src/components/animated-if.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ interface AnimatedIfSignature<T> {
/**
A drop in replacement for `{{#if}}` that animates changes when the predicate changes.
Animated-if uses the same arguments as animated-each.
```hbs
<button {{on 'click' this.toggleThing}}>Toggle</button>
Expand Down
1 change: 1 addition & 0 deletions addon/src/components/animated-orphans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface AnimatedOrphansSignature {
A component that adopts any orphaned sprites so they can continue animating even
after their original parent component has been destroyed. This relies on cloning
DOM nodes, and the cloned nodes will be inserted as children of animated-orphans.
```hbs
<AnimatedOrphans/>
```
Expand Down

0 comments on commit 07f6ec4

Please sign in to comment.