cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Js in product view

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Custom Js in product view

Hello,

 

I want to know the correct form to include custom js to the product view.

I don't understand when to use, data-mage-init and when to use stript tag.

I tried to use the script tag, but i don't see nothing in my front. i flollowed this steps: 

 

http://magento.stackexchange.com/questions/114327/magento-2-include-js-on-the-product-page/114379

 

But nothing

 

I appreciate any help.