What does this function does ? Magento 2 billing-address.js
-
13-04-2021 - |
Pregunta
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');
},
Solución
Code written in this function will execute first
Licenciado bajo: CC-BY-SA con atribución
No afiliado a magento.stackexchange