Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix documentation code blocks #668

Merged
Merged
Show file tree
Hide file tree
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
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