Preload app.component.ts before services

why services load before app.component.ts and how to make it load after it
?

This is a choice of the framework and ypu should not try to change or depend on it

Use lifecycle hooks and position your code in a different spot

Why would u want to change this?

1 Like

I agree with @Tommertom that you shouldn’t care about this, but obviously any service that is injected by the app component has to be constructed before it.

1 Like