Yes. But all controllers/services are placed in th...
# fw1
c
Yes. But all controllers/services are placed in the application scope, by default. When we inject into a controller like:
Copy code
property fooService;
My understanding is that because the actual controller component is in the application scope, everything inside the component, including properties, which are in the
variables
scope, also persist. You can see this when you dump out the application scope. The point I am trying to make, is that any variable inside a service, in the
variables
scope, is a singleton, as well. This makes it vulnerable to being changed by more than one request. If services were transients, each request would get given a new instance. In this case, there would be no problem, because each request would be given its own copy of all the variables inside each service.