I tried to call a component from another component as
Here for the first time I am getting value of Teacher.Id as null in controller but when I am trying to call it on some event on another component it is running properly with corresponding TeacherId. Even it is able to print same value for first time on component but not able to fetch this in controller. I am not getting why it is sending null value for the very first time. If I run above component individually from lightning app it is working fine.