Is there something wrong with making an http request in the ngOnInit of a component when using Angular Universal?
问题 I have been running my Angular app via ng serve for development and was not experiencing any errors. When using SSR, however, I get an error in my server log whenever I load a component that makes an http request as part of it's ngOnInit method. Is there something wrong with my strategy? I have not found any useful information from googling my error. Should I be waiting before the page is fully loaded to make my request, or using some other method? If so, how would I do this? I am using the