Author: Not specified Language: javascript
Description: Not specified Timestamp: 2018-06-15 08:14:44 +0000
View raw paste Reply
  1. ({
  2.   doInit: function(component, event, helper) {
  3.     var action = component.get("c.getBooks");
  4.     action.setCallback(this, function(data) {
  5.       component.set("v.Books", data.getReturnValue());
  6.       console.log(data.getReturnValue());
  7.     });
  8.     $A.enqueueAction(action);
  9.   }
  10. })
  11.  
View raw paste Reply