Symfony UX: Stimulus
On Value Change Callback
  Start your All-Access Pass to unlock this challenge
Buy Access Login

Challenge 1 / 1

Suppose we have a Stimulus controller like this:

export default class extends Controller {
    static targets = ['selectItem'];

    static values = {
        itemId: Number
    }
}

How would you add a change callback method for the itemId value?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.