See the sidebar code. It's a good example.
vendor/magento/module-checkout/view/frontend/layout/checkout_index_index.xml
vendor/magento/module-checkout/view/frontend/web/js/view/summary
Example:
Get Payment from quote
Magento_Checkout/js/model/quote
:quote.paymentMethod()
. See here: vendor/magento/module-checkout/view/frontend/web/js/action/select-payment-method.jsShipping Address and Billing Address:
quote.billingAddress()
andquote.shippingAddress()
.Quote items data:
quote.totals().items
Can read more here: https://magento.stackexchange.com/a/133732/33057