• Alex Dinu 17
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I'm trying to code a pure function, passing in the component into the helper method and setting:

In the component, I have the following defined:
<aura:attribute name="teamCount" type="integer" default="1"/>
in the controller, I'm trying to do the following:
helper.onSetTeamCountRequest( component.get("v.teamCount"));
And in the helper, I want to change the value:
 
onSetTeamCountRequest: function( teamCountAttribute) {
        teamCountAttribute = 5;
    },

But it does not update the value.

Thanks


 
I'm trying to code a pure function, passing in the component into the helper method and setting:

In the component, I have the following defined:
<aura:attribute name="teamCount" type="integer" default="1"/>
in the controller, I'm trying to do the following:
helper.onSetTeamCountRequest( component.get("v.teamCount"));
And in the helper, I want to change the value:
 
onSetTeamCountRequest: function( teamCountAttribute) {
        teamCountAttribute = 5;
    },

But it does not update the value.

Thanks