What does this function does ? Magento 2 billing-address.js
-
13-04-2021 - |
Domanda
Would like to know what does this fucntion does in billing-address.js initialize: function () {
this._super();
quote.paymentMethod.subscribe(function () {
checkoutDataResolver.resolveBillingAddress();
}, this);
shippingRatesValidator.initFields(this.get('name') + '.form-fields');
},
Soluzione
Code written in this function will execute first
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange