May 2019
Intermediate to advanced
546 pages
12h 41m
English
Let's build the client-side JavaScript controller for our component. We've just seen the call to the functionality to close the modal in the component, so let's write this code in our controller:
closeModal: function(component, event, helper){ var navToMovieTab = $A.get("e.force:navigateToObjectHome"); navToMovieTab.setParams({ "scope": "Movie__c" }); navToMovieTab.fire();}
In this small method, we call a standard ...
Read now
Unlock full access