title: Magento 2 - Reload totals cart after ajax change quantity
body: <p>I want to use ajax to change the quantity of one item on the cart magento 2 cart page.</p>
  
  <p>I have added this javascript:</p>
  
  <pre><code>$('.cart.item .qty').on({
      change: function() {
          var post_url = $(this).attr('data-post-url');
  
          $.post(post_url, $(this).serialize(), function(data) {
              $(".form-cart").replaceWith(data.cart_html);
              $("#cart-totals").replaceWith(data.totals_html);
              $("#cart-totals").trigger('contentUpdated');
          }, "json");
      }
  });
  </code></pre>
  
  <p>The value of data.totals_html is </p>
  
  <pre><code>&lt;div id="cart-totals" class="cart-totals" data-bind="scope:'block-totals'"&gt;
  &lt;!-- ko template: getTemplate() --&gt;&lt;!-- /ko --&gt;
  &lt;script type="text/x-magento-init"&gt;
          {
              "#cart-totals": {
                  "Magento_Ui/js/core/app": {"components":{"block-totals":....}
  &lt;/script&gt;
  </code></pre>
  
  <p></p>
  
  <p>When I change the quantity, the total component content is not refresh..</p>
  
  <p>Anyone have an idea for dynamically update the total component after replace the html code?</p>