• ManishKumar Singh 1
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
=====> 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 .... :)