You need to sign in to do that
Don't have an account?
Amit Raghuvanshi 6
Getting Error : Something gone wrong :Cannot read property 'setParams' of undefined
in lightning classic but working fine in lightning experiance and salesforce 1
How can i achieve the same in lightning classing using events?
Thanks in advance .... :)
navigatetoURL error in lightning classic
=====> Lightning component <====== <aura:component implements="force:appHostable"> <ui:button press="{!c.navigateIt}" label="Go!" /> </aura:component> ======> Lightning Component Controller <====== var navigateIt : function(component,helper,event) { var navigate = $A.get("e.force:navigateToURL"); navigate.setParams({ "url" : http://www.google.com"}); navigate.fire(); }
Getting Error : Something gone wrong :Cannot read property 'setParams' of undefined
in lightning classic but working fine in lightning experiance and salesforce 1
How can i achieve the same in lightning classing using events?
Thanks in advance .... :)
You need to register an event in order to fire it from your Lightening component.
Register the Application event like this: Kindly mark this as a solution if it helps!
Regards
Veenesh