Skip to content

Commit

Permalink
fix: wrong usage of stimulus_param in
Browse files Browse the repository at this point in the history
README
  • Loading branch information
asgerb authored Jul 13, 2024
1 parent ee410ef commit 09822cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ class ModalComponent < ApplicationComponent
has_stimulus_outlet "outlet", ".selector"

# Param
has_stimulus_param id: 123
has_stimulus_param id: -> { id }
has_stimulus_param :id, 123
has_stimulus_param :id, -> { id }

# Target
has_stimulus_target "target"
Expand Down

0 comments on commit 09822cf

Please sign in to comment.