Given only what you’ve told us so far, all I can say is “because you called
You should do your best to design things so that you don’t have these sorts of situations.
method2() needs to be able to function regardless of whether
this.test has been populated yet, or its functionality can be folded into the subscription of
My general design pattern here is to have service providers expose somehow (either as properties or return values of methods)
Observables of business object interfaces. Pages inject these providers, subscribe to them either at construction or using lifecycle events, and update their own properties accordingly. All other page methods and templates should be written so as not to particularly care whether these page properties derived from provider data are blank/dummy, loaded, or modified while they are not paying attention.