I am new to communities in lightning and I am trying to figure out a way to directly fetch the URL parameters into the lightning component attributes using the {! urlParamName} expressions.
for example :
https://www.someurl.com/page?name=somename&surname=somesurname
My lightning component will be :
<aura:component>
<!-- Parameters Available in URL-->
<aura:attribute name="name" type="String">
<aura:attribute name="surname" type="String">
<!--It will get name parameter from URL directly-->
Name is : {!v.name}
<!--It will get surname parameter from URL directly-->
SurName is : {!v.surname}
</aura:component>
I am trying to figure out a way which cannot includes JS. Currently I am using Lightning JS to get these parameters.
{!v.attributeName}
.