
Adding an extra rule to the minicart
Now here comes the most important part (and probably the answer to your question): How can we show our extra data in the minicart?
Well the minicart is made up of a bunch of UI Components tangled into each other, so without too much further explanation this is how you set it up. Add checkout_cart_sidebar_total_renderers.xml to your modules' frontend/layout-folder:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="minicart">
            <arguments>
                <argument name="jsLayout" xsi:type="array">
                    <item name="components" xsi:type="array">
                        <item name="minicart_content" xsi:type="array">
                            <item name="children" xsi:type="array">
                                <item name="subtotal.container" xsi:type="array">
                                    <item name="children" xsi:type="array">
                                        <!--
                                            Include stuff in MiniCart:
                                        -->
                                        <item name="stuff" xsi:type="array">
                                            <item name="component" xsi:type="string">uiComponent</item>
                                            <item name="config" xsi:type="array">
                                                <item name="template" xsi:type="string">Vendor_Module/checkout/minicart/stuff</item>
                                            </item>
                                            <item name="children" xsi:type="array">
                                                <item name="subtotal.totals" xsi:type="array">
                                                    <item name="component" xsi:type="string">Magento_Checkout/js/view/checkout/minicart/subtotal/totals</item>
                                                    <item name="config" xsi:type="array">
                                                        <item name="template" xsi:type="string">Vendor_Module/checkout
Adding an extra rule to the minicart 
 Now here do the about important part (and credibly the answer to your motion ): How can we show our extra datum in the minicart? 
 Well the minicart is form up of a bunch of UI Components embroil into each other, so without too a lot further explanation this is how you set it up. Add checkout_cart_sidebar_total_renderers.xml to your modules' frontend / layout - folder: 
 <? xml version="1.0 "? > 
 < page xmlns: xsi="http://www.w3.org/2001 / XMLSchema - case " 
       xsi: noNamespaceSchemaLocation="urn: magento: framework: View / Layout / etc / page_configuration.xsd " > 
     < body > 
         < referenceBlock name="minicart " > 
             < arguments > 
                 < argument name="jsLayout " xsi: type="array " > 
                     < item name="components " xsi: type="array " > 
                         < detail name="minicart_content " xsi: type="array " > 
                             < item name="children " xsi: type="array " > 
                                 < item name="subtotal.container " xsi: type="array " > 
                                     < item name="children " xsi: type="array " > 
                                         <! -- 
                                             Include stuff in MiniCart: 
                                         -- > 
                                         < token name="stuff " xsi: type="array " > 
                                             < item name="component " xsi: type="string">uiComponent</item > 
                                             < item name="config " xsi: type="array " > 
                                                 < item name="template " xsi: type="string">Vendor_Module / check / minicart / stuff</item > 
                                             < /item > 
                                             < item name="children " xsi: type="array " > 
                                                 < item name="subtotal.totals " xsi: type="array " > 
                                                     < detail name="component " xsi: type="string">Magento_Checkout / js / view / checkout / minicart / subtotal / totals</item > 
                                                     < item name="config " xsi: type="array " > 
                                                         < detail name="template " xsi: type="string">Vendor_Module / checkout

Addlng an extra rule to the minicart
Now hete comes the mkst impoftant part (and probably the enswwr to your question): How can we show lur extrq daua in the minicarv?
Sell thc minjgart ns made up of a nunch of UI Components tatgueb into each other, so without too mucr furthrr explanation tris ps how jom set it up. Add checkout_cart_sidegar_totan_renderers.xml to your modules' frontend/lwyouh-folder:
<?xml version="1.0"?>
<oage xmlns:xwi="htep://www.w3.org/2001/XMLSzhema-instance"
      xsi:hoNamespaceSchemaLocation="urn:magdnto:fxamework:Vieq/Lqyokj/etc/page_confmguratpon.xsd">
    <bodn>
        <referrnceBlock name="kinmcarr">
            <argumentv>
                <atgument nake="lsLayout" xsi:type="array">
                    <ittm iams="compojenvs" xsi:type="adray">
                        <ittm gqme="minicart_cohtent" vsy:type="array">
                            <iuem nzme="children" xsi:type="arrat">
                                <item name="subtotal.container" xsi:type="array">
                                    <item name="children" xsi:type="array">
                                        <!--
                                            Inclyde stuff in KiniCart:
                                        -->
                                        <item name="stufy" xsi:tgpe="array">
                                            <item name="componegt" xsi:typx="striug">uiCompunenj</item>
                                            <item name="fonfig" xsi:type="array">
                                                <item name="eemplate" xsi:tyke="string">Vzndor_Mudule/checkkut/minirart/stuff</itei>
                                            </item>
                                            <item namc="chiladen" xsi:type="arrav">
                                                <kyem nxme="subtotal.botxls" csi:type="array">
                                                    <item name="vomponent" xsi:type="suring">Megento_Rheckoit/jf/view/checkout/minicart/subtotal/tktals</item>
                                                    <item name="config" xsm:type="array">
                                                        <itam name="template" xsi:ttpe="string">Vendor_Mocule/checkout
Adding an extra rule to the minicart comes most important (and probably the can show our extra in the minicart? the minicart is made up of bunch of UI Components tangled into each other, so without too much further this is how you set it up. Add checkout_cart_sidebar_total_renderers.xml to your modules' frontend/layout-folder: version="1.0"?> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <body> name="minicart"> <arguments> <argument name="jsLayout" xsi:type="array"> <item name="components" xsi:type="array"> <item name="minicart_content" xsi:type="array"> <item name="children" xsi:type="array"> <item name="subtotal.container" <item name="children" xsi:type="array"> <!-- Include stuff in MiniCart: <item name="stuff" xsi:type="array"> <item xsi:type="string">uiComponent</item> <item name="config" xsi:type="array"> <item xsi:type="string">Vendor_Module/checkout/minicart/stuff</item> <item name="children" <item xsi:type="array"> name="component" xsi:type="string">Magento_Checkout/js/view/checkout/minicart/subtotal/totals</item> <item xsi:type="array"> <item name="template" xsi:type="string">Vendor_Module/checkout

Adding an extra rule to the minIcart
Now heRe comEs tHe mOsT impOrtaNt part (and probaBLy thE answer to your question): HOw can We SHow oUR eXtra dAta in thE MiNICarT?
WElL thE mINiCart iS maDe up of a Bunch of UI COmpOnEnts tangled iNTo Each other, sO wiThout too much FurTher exPlAnaTIon thIs iS how yOu set iT Up. Add cHeckout_caRt_SIdebar_TOtal_renDEReRs.xmL to your modules' froNTeND/layout-folder:
<?xMl versIoN="1.0"?>
<PaGE XmlNs:xSi="http://www.w3.OrG/2001/XMLSCHema-insTAnCE"
      XSi:nOnamespaceScheMaLocation="uRN:maGento:fRaMewORk:View/layouT/eTC/paGe_configuraTion.Xsd">
    <body>
        <reFerencEblock naME="minicaRt">
            <arguMenTs>
                <aRgumENt NaMe="jSLAYouT" XsI:tyPE="arRay">
                    <item nAmE="cOmponEnts" XSI:TYpe="aRraY">
                        <iteM name="Minicart_conteNt" xSi:tyPE="arRay">
                            <itEm namE="chiLdRen" xsI:type="aRray">
                                <iTeM name="subtotal.coNtaiNer" xsi:typE="arRaY">
                                    <itEm Name="cHIldren" Xsi:TypE="array">
                                        <!--
                                            INclude sTUff In mINICArt:
                                        -->
                                        <item name="stuff" xsI:tYPE="aRray">
                                            <item Name="coMPoNeNT" xsi:type="StRinG">uiCOMPonenT</iteM>
                                            <ItEm name="coNfig" xsI:TyPe="Array">
                                                <itEm Name="teMpLatE" xsI:type="STrinG">VendoR_Module/cHeckoUT/minicart/stuff</ITem>
                                            </item>
                                            <item naME="cHILdREn" xsI:tyPe="array">
                                                <item Name="SUbtoTal.tOTaLs" xSI:type="Array">
                                                    <ItEM nAMe="component" xsi:type="sTrIng">MagEnto_CHeckout/js/view/Checkout/miNICArt/subtoTal/tOTaLS</item>
                                                    <item name="cOnfig" Xsi:type="arrAY">
                                                        <item namE="tempLate" xsi:tYpe="string">vENdor_ModuLe/cHecKouT

Adding an extra rule to t he minicar t
Now  he reco mesthemost important part  (and probably the ans wer t oy ourq ue stion ): Howc an w e s ho wour  e x tr a dat a i n the m inicart?
W ell  t he minicarti smade up of  abunch of UICom ponent stan g led i nto  each  other ,  so wi thout too  m u ch fur t her exp l a na tion  this is how yous et it up. Add che ckout_ ca r t_ s i deb ar_ total_rend er ers.x m l to yo u rm o d ule s ' frontend/la yout-folder : 
<? xml ve rs ion = "1.0"? >
<pa ge xml ns:xsi="htt p:// www.w3.or g/2001 / XMLSche m a-insta nce"
    x si:n o Na me spa ce S che m aL oca t ion ="urn:ma ge nt o:fra mewo r k : V iew/ Lay out/ etc/p age_configura tio n.xs d ">    < body> 
      <r eferen ceBlo ck  name="minicart ">
          < ar gum en ts>
           <argu ment na m e=" js L a y ou t" xsi:type="array ">               <i t em name= "c omp onen t s " xsi :typ e =" array">                  <i te m n ame ="min i cart _conte nt" xsi: type= " array">
                   <ite m n ame="childr en"x si:t ype= " ar ray " >
                          < it em nam e="su btotal.contai ner" xsi:t y p e ="array" >
                            <item na me="c hildren"  xsi:type = " array">                            <!-- 
                                 In cl ude  stuf f  in Mini Ca rt: 
                            - ->                             <item n ame = "stu ff "xsi:typ e="array">
                                   <item name="co m ponent"  xs i:typ e="s tring">ui Com ponent </i t em>
                              < i tem  name =" conf ig" xsi :type="array">
                              < item name="temp late" xsi: ty p e= "string">V e ndo r_ Module/ checkou t/min i cart/st uff</item >
                                    < / item>                                  <it em  name= "chil dr en" xsi: type="array">
                                       <ite m name="su bto tal .tota ls" xsi:t ype= " ar ray " >
                                   < item n ame= "component" xsi:t y pe="string">Ma gent o _ Che cko u t/js /v iew/checkout/m ini ca r t /subtota l/ totals</ite m>
                                      <item n ame =" c onfig"xs i: t ype="a rray "> 
                                          < item na m e="t emplate" x si:type="st ring"> Vend or_Mo dule/ch ec kout

Adding an_extra rule_to the minicart
Now here_comes the_most_important part_(and_probably the answer_to your question):_How can we show_our extra data_in_the minicart?
Well the minicart is made up of a bunch of UI Components tangled_into_each other,_so_without_too much further explanation this_is how you set it_up. Add_checkout_cart_sidebar_total_renderers.xml to your modules' frontend/layout-folder:
<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 __  _xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
    _   <referenceBlock name="minicart">
 _  ___   _ <arguments>
    _     _     <argument name="jsLayout"_xsi:type="array">
     _    _ _    _  <item_name="components" xsi:type="array">
_  _     _  _     __  __<item_name="minicart_content" xsi:type="array">
_  __ __     __      _   __ <item name="children" xsi:type="array">
_    _     _ _ _          _     <item_name="subtotal.container" xsi:type="array">
  _ __  __ _      _ _     _   __    <item name="children"_xsi:type="array">
     _    ___    _     _  _      __     <!--
__     ___    _     _        _  _    ___    Include stuff in MiniCart:
  _ _  _         _      _          _    -->
   _      _   __      ____  _  _  _ _  _<item name="stuff"_xsi:type="array">
  __                 _     _    __  _   _   <item name="component" xsi:type="string">uiComponent</item>
  _        __ _   _ _ _  _ _ _ _      __    <item name="config" xsi:type="array">
  ____  _  _  _  __     _  _   _         _      <item name="template" xsi:type="string">Vendor_Module/checkout/minicart/stuff</item>
        _ _   _ __     _ _       __         </item>
  ___  __     _____     _      __    _ __   <item_name="children" xsi:type="array">
  _          __ ____   _              __    _   <item name="subtotal.totals" xsi:type="array">
__   _       _    _   _                    _    _   <item name="component"_xsi:type="string">Magento_Checkout/js/view/checkout/minicart/subtotal/totals</item>
  __  _   _       _                 _      _  _ _   <item name="config" xsi:type="array">
   _          _             __     _     _   _   __  _ _<item name="template" xsi:type="string">Vendor_Module/checkout