1

I have created a lightning component and I need to add it to salesforce1 app. I'm trying to add the lightning component through Lightning Component Tab. But the lightning component that I have created is not visible in the Lightning Component dropdown. How can we add lightning components to the salesforce1 app?

1

2 Answers 2

3

You need to have the component implement the interface as follows:

<aura:component implements="force:appHostable" />
//...your code here
</aura:component>

This is what tells the platform that you wish to use it in the S1 mobile application.

You can find more about this in the Lightning Components Developer guide in the section on Adding Lightning Components to Salesforce1.

1
  • Hi Peter, how can we add <aura:application > in the S1 mobile application? Commented Jan 22, 2015 at 11:41
1

Very helpful It shows in web browser /one/one.app But in actual device mobile app I do not get the component navigation options. Currently struggling with this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .