Episodes
dklima PRO said over 3 years ago on Deeper Dive into StimulusJS :
Hi! Is it possible to put the us.csv in github or anothe location? I couldn't download it to generate the seed. Thank you

dklima PRO said over 3 years ago on Deeper Dive into StimulusJS :
Oh, nevermind :D I've found the "download" link in the show notes tab. Thank you!

David Kimura PRO said over 3 years ago on Deeper Dive into StimulusJS :
Glad you found it. It was a little hidden. :)

j.estrada said over 2 years ago on Deeper Dive into StimulusJS :
Hi, i am following the stimulus learning path, but after the first video, when i try to see this one, i feel i miss something else, what video # should i see first to get here?

David Kimura PRO said over 2 years ago on Deeper Dive into StimulusJS :
  One thing that has changed from the earlier videos is that now I use rails webpacker:install:stimulus to install stimulus. I think that #189 or #207 are great starting guides. I think that it's one of those things where it will take practice to get use to it. I often refer back to the handbook which has lots of great information. https://stimulusjs.org/handbook/introduction


j.estrada said over 2 years ago on Deeper Dive into StimulusJS :
Great! is good to know. I wanna say thank your support. I did not have problems with that change, because indeed  i looking for documentation while im watching this video.  Now i realize that i was confused on how the video started. I thought that all the accounts , cities, countis, settings model  were already made before this video, but when i finished it, i noticed that all the practice was perfectly explained. Thank you

daijinara PRO said almost 2 years ago on Deeper Dive into StimulusJS :
better to put this line of code.

import Rails from "@rails/ujs";

Otherwise, Rails.ajax call will be undefined.

Also, adding the intergration with select2 would be better, since it does not fire native events. 


David Kimura PRO said almost 2 years ago on Deeper Dive into StimulusJS :
  I agree. This application was in that weird transitional phase where the app/assets/javascript/application.js still had the require of UJS

//= require rails-ujs

However, on modern setups where webpacker is present and the asset pipeline is no longer handling the JS, you're absolutely correct.

daijinara PRO said almost 2 years ago on Deeper Dive into StimulusJS :
 For people like me who is hobbyist and only learned functional language such as ruby,  I really appreciate your teaching style in explaining each line of codes on the city_selector_controller.js. :)

daijinara PRO said almost 2 years ago on Deeper Dive into StimulusJS :
For those seeking to integrate select2, add this code below:

initialize() {
    console.log('hello from city-selector controller')

    $("#state_id, #county_id").on('select2:select', function () {
      let event = new Event('change', { bubbles: true }) // fire a native event
      this.dispatchEvent(event);
    });

    this.check_forms()    
  }

Login to Comment