barnettech / drupal8_book

4 stars 17 forks source link

Question about Adding Javascript chapter #8

Open kwaight3 opened 8 years ago

kwaight3 commented 8 years ago

Hi, I'm trying to add Javascript to my module following your example in Chapter 8. It says ". . you'll see how we include them in the highlighted code below in the HelloWorldController.php file." But there's nothing highlighted in the following code, and it looks identical to the version in the Adding CSS chapter. So is it true that adding the attached library lines from the Adding CSS chapter is the same change that will allow the Javascript to be used, after the js lines are added to the libraries.yml file? Thanks!