Lightning Page with...
 
Notifications
Clear all

Lightning Page with the following HTML snippet:

1 Posts
1 Users
0 Likes
55 Views
Rolando
(@bulluckrolando)
Noble Member
Joined: 7 months ago
Posts: 342
Topic starter  

A developer is developing a reuseable Aura Component that will reside on an sObject

Lightning Page with the following HTML snippet:

<aura:component implements="force:hasRecordId,flexipage:availableForAIIPageTypesM>

<div>Hello!</div>

</aura:component>

How can the component's Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?

  • A . Set the sObject type as a component attribute.
  • B . Add force:hasSobjectName to the implements.
  • C . Use the getSObjectTypeQ method in an Apex class.
  • D . Create a design attribute and configure via App builder.

Show Answer Hide Answer

Suggested Answer: B

   
Quote
Share: