Hey, I have recently discovered that we can pass variable inside a blade template like this,
@include('woocommerce.single-product.product-realted', ['id' => $p_id ])
Now, these are self-contained and reusable components for me.
I am interested in adding the required JS, for that particular page wherever it is required.
Is it possible?
It would be a very elegant solution if it was.