Skip to content

Commit

Permalink
docs: Fix minor errors in useTargetMutation doc (#506)
Browse files Browse the repository at this point in the history
Doc had spaces between bold markdown symbols, resulting it displaying
** ** instead of actual bold text. Also changed instances of the word
'removed' to 'changed' for clarity to match the appropriate method.

I would also suggest using header markdown symbols instead of bolding
the titles where appropriate.
  • Loading branch information
TedTran2019 committed Mar 22, 2024
1 parent 4821fd6 commit 171028d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/use-target-mutation.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ export default class extends TargetMutationController {
}

locationTargetChanged(element) {
// triggered when a locationTarget is removed
// triggered when a locationTarget is changed
}

}
```
**Extending a controller with options **

**Extending a controller with options**

```js
import { TargetMutationController } from 'stimulus-use'
Expand All @@ -146,7 +147,7 @@ export default class extends TargetMutationController {
}

locationTargetChanged(element) {
// triggered when a locationTarget is removed
// triggered when a locationTarget is changed
}

}
Expand Down

0 comments on commit 171028d

Please sign in to comment.