Get Id from current page in Lightning Component - Domreysa

Post Top Ad

Post Top Ad

Monday, June 11, 2018

Get Id from current page in Lightning Component



1. Get Id from current page

1.1 Add 'force:hasRecordId' to implements

eg: <aura:component implements="force:hasRecordId">

1.2 Create attribute to receive Id

eg: <aura:attribute name="recordId" type="Id" />

        1.3 In controller js
               eg: component.get("v.recordId");

No comments:

Post a Comment

Post Top Ad

Responsive Ads Here