0👍
✅
Your data e.g. firstname
is inside the user_detail1
object, so you need to change provide
like following to make it work.
provide() {
return {
firstName: this.user_detail1.firstName,
lastName: this.user_detail1.lastName,
paymentAmount: this.user_detail2.paymentAmount,
accountNumber: this.user_detail2.accountNumber
}
},
Source:stackexchange.com