4

Trying to understand why I cannot access the results of component.getElements() in my helper method.

methodName:function(component, event, helper){

     console.dir(component.getElements());
     console.dir(component.getElements()[0]);
}

The first console.dir() produces:

enter image description here

The second console.dir() results in undefined and I have no idea why.

1
  • 1
    I tried to debug component.getElements().length and it is 0 Mar 23, 2018 at 21:34

0

You must log in to answer this question.

Browse other questions tagged .