What does this function does ? Magento 2 billing-address.js
-
13-04-2021 - |
Pergunta
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');
},
Solução
Code written in this function will execute first
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange