Created
          May 13, 2016 01:43 
        
      - 
      
- 
        Save karanrajs/7f4f28fb124873cb3be5dc6189c643a9 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ({ | |
| previousPage : function(component, event, helper) { | |
| var myEvent = $A.get("e.c:PageChange"); | |
| myEvent.setParams({ "direction": "previous"}); | |
| myEvent.fire(); | |
| }, | |
| nextPage : function(component, event, helper) { | |
| var myEvent = $A.get("e.c:PageChange"); | |
| myEvent.setParams({ "direction": "next"}); | |
| myEvent.fire(); | |
| } | |
| }) | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment