A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:
How can the component"5 controller get the context of the Lightning page that the sObject is on without requiring additional test coverage?
By implementing force:hasSobjectName, the Aura component can retrieve the sObject context of the record page it is placed on without needing additional information. This interface provides the component with the API name of the sObject being displayed.
Aura Components Developer Guide
Chan
18 days agoCassandra
20 days agoTarra
22 days agoLakeesha
1 months agoMargurite
1 days agoDella
1 months agoNina
1 months agoSue
1 months agoDella
2 months ago