function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
FaridKognozFaridKognoz 

Controller Variable & Component Variable Stepping on each other

This is the scenario: I have a page controller using a variable with the same name as a variable in a component's controller. I use the component in the same page and realised this was a problem. I assume that in execution time, all the apex code es concatenated (page controller & components controllers). I realize that changing the name of one of the variables would solve the problem but What would be the correct thing to do?

Thanks in advance