Controller, Helper and Renderer in Salesforce Lightning and writing multiple javascript functions
Controller, Helper and Renderer - Relationship The new Salesforce Lightning provides latest and rich UI experience to the Salesforce application using Components, JavaScript, HTML and CSS (Responsive design) on Lightning Component framework (a framework built on aura framework) . Custom components would be developed and could be used in multiple areas as needed. JavaScript plays an important role in Lightning Component framework and inside component bundle, it is separated in to Controller, Helper and Renderer. Have you ever wonder, why these are separated? To know about this, one must know about each section and its role inside the component. Controller: This section should contain only the JavaScript functions for listening to the different events (User events as well as Control events) that is being fired inside the component. The execution part or the business logic part should be de...