Develop a Simple To-Do List App With Salesforce Lightning Component

Reducing Field Validation Boilerplate Code

 

 

({

    //Method to set columns and data for datatable

    doInit : function(component,event,helper){

        // create current date instance

        var now = new Date();

        var date = now.getDate();

        var month = now.getMonth() + 1;

        var fullYear = now.getFullYear();

        var today = fullYear + ‘-‘ + month + ‘-‘ + date;

        component.set(“v.today”, today);

        

        // set lightning…



Read more