I working on 'Build Flexible Apps with Visualforce Pages and Lightning Components' trailhead module and I was on 'Create a SimilarProperties Lightning Component' there is one statement comes up which states " the component also uses the force:hasRecordIdinterface, which will automatically retrieve the Id of the current Record page and store it in the with a name of recordId."
My question is is it mandatory to declare attribute with name recordId instead on any other name like oppId etc. and what if I have multiple attribute declare with same type="Id", how framework works in this case.
many of you might feel this question stupid but it just came to my mind. I am gonna try it myself but want to know your expert views.
Thanks in advance.