i am getting the value of a variable var= ezLinkCard in below code in one of the view controller and want to pass or read this variable value in another view controller.How can i acheive this? your help is appriciated.
onRouteMatched: function(oEvent) {
var oView = this.getView();
var navigationDestinationView = oEvent.getParameter("name");
if (navigationDestinationView === "initial" || navigationDestinationView === "initial1") {
var ezLinkCard = oEvent.getParameter("arguments").cardNumber;
if (ezLinkCard !== undefined && ezLinkCard !== null && ezLinkCard !== "") {
this.getValidUserId(ezLinkCard);
}
}
},