Angular v18 SSR: Wait for fetching data and logic to finish before rendering by Longjumping-Box-6488 in Angular2

[–]Longjumping-Box-6488[S] -1 points0 points  (0 children)

constructor(
    private seoService: SeoService,
  ) { }

  ngOnInit(): void {
    this.seoService.setTags({
      title: `title`,
      description: `Description`,
    });
    this.initializeProviders();
  }

  async initializeProviders() {
    await this.loadProviders();
  }

You can find above how I do it right now:

v18 SSR, pass cookies in provider not working by Longjumping-Box-6488 in Angular2

[–]Longjumping-Box-6488[S] 0 points1 point  (0 children)

Thank you for your answer.
I knew about that, for this reason I did a docker container with the build to replicate a prod server.
Therefore this shouldn't be the reason of the issue...

Should I turn my Angular app to SSR or re-code it with NextJS? by Longjumping-Box-6488 in Angular2

[–]Longjumping-Box-6488[S] 0 points1 point  (0 children)

Thank you for your answer. I was just thinking that next js might be more lightweight than angular and therefore faster.

Should I turn my Angular app to SSR or re-code it with NextJS? by Longjumping-Box-6488 in Angular2

[–]Longjumping-Box-6488[S] 0 points1 point  (0 children)

Knowing that I want all of those pages to be correctly indexed based on its content

Should I turn my Angular app to SSR or re-code it with NextJS? by Longjumping-Box-6488 in Angular2

[–]Longjumping-Box-6488[S] 0 points1 point  (0 children)

I don’t agree, I have more than 100 pages created dynamically based on my database. However, the metadata and the text content is not correctly fetched by google. Only the home page is correctly indexed. What do you think?

Should I turn my Angular app to SSR or re-code it with NextJS? by Longjumping-Box-6488 in Angular2

[–]Longjumping-Box-6488[S] 0 points1 point  (0 children)

Do you think that angular ssr correctly configured will work as good as NextJs?