I created a lightning component that basically needs to receive an Account Id to work with, so when I was developing it, I created a standalone application and simply passed the accountId that I was using like this :
So now I need to put him inside a Lightning Tab, but I couln't find a way to pass my parameter there. After some search I found this code, but I think that this shouldn't be the way to handle it.
The url will be something like :
(Where '123456789' is the ID that I need)
// This one gets you : '123456789amp;' var sPageURL = decodeURIComponent(window.location.search.substring(1)); // This one gets you : '123456789' var tempVer=sPageURL.split('amp;');
(The topic where I found this code is this one)
Ok, fine, that works for now, but what if I need to pass more parameters in the future? How do I send parameters to my components that are inside a Lightning Tab?
Thanks in advance.