+ Start a Discussion
Aakanksha Singh 11Aakanksha Singh 11 

Jquery not working in Salesforce1(Lightning Component)

Hello everyone,

I'm facing issue in lightning component in regard with jquery. It is working fine in lightning experience, but in salesforce1 it is throwing following error(please refer to the screenshot):
https://www.awesomescreenshot.com/image/2538053/828e04a4acf23e355333f5035a3fc968

Here is my code:
<!----Component---->
<!----jquery.min.js (version 2.2.4)---->
<aura:component implements="force:appHostable">
    <ltng:require scripts="{!$Resource.jquery}" afterScriptsLoaded="{!c.scriptsLoaded}"/>
</aura:component>



<!----Controller---->
({
	scriptsLoaded : function(component, event, helper) {
            alert("working");
        },
})

Please respond

Regards
Aakanksha Singh