Skip to content

Commit

Permalink
Merge pull request #668 from backspace/fix-documentation-code-blocks
Browse files Browse the repository at this point in the history
Fix documentation code blocks
  • Loading branch information
SergeAstapov authored Feb 21, 2024
2 parents 6282416 + 07f6ec4 commit 0865cbd
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 0865cbd

Please # to comment.