I have a code that calls specific components upon clicking links. These components have init functions that checks certain field values. I'd like to know how many times an init function is called since I wanted it to always perform everytime the component is called.
I added an alert inside the init function of a component and while it is true that it alerts everytime the page is loaded as it is the default component to be loaded, once I click a link and another component loads, then click a new link to load the previous one, the init function does not execute and the alert is gone. I know we have the renderer to fix this kind of stuffs but I wanted to know if we could do it in the init function.