I'm working with twig for render data. Here is my code:
function addProduct(product_id, product_image, product_name) {
        product_ids.push(parseInt(product_id));
        // console.log(file_id);
        $.each(product_ids, function (i, val) {
            products[i]= {id: product_id, image: product_image, name: product_name};
        })
        console.log(products);
        $("#search-pop").slideUp();
        $(".list-selected-product").append(
            {% include '_layout/include/_render_product_select.html.twig' with {'products': products} %}
        );
        // console.log($(".list-selected-product").html(products));
    }
Now i want to render_product_select but i don't know how can transmission products to this. Please help me! Thank so much.
