I am embarrassed about how the angular area works !!!
I pass two variables to one template using ng-init and onLoad. Both values ββof the variable are available from the template, but there is one controller that I bound to this template. I think why both variables print their value from the template, but print undefined (onLoad varibale) when accessing the controller.
Fiddle illustrating my problem jsFiddle
I understand that when we pass a variable using ng-init, it creates this variable inside the current scope, but what onLoad is passed for this variable?
Please tell me how it works.
Thanks.
source share