[SalesForce] How to add a lightning component to salesforce1 navigation menu

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?

Best Answer

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.