I need to get the sobject's API name in the lightning JS controller, in the component side we need to specify <aura:attribute name="sObjectName" type="String" />
, but to access in controller, can some one please say.
For recordId
, we do this,
action.setParams({
"accountId": component.get("v.recordId")
});