Skip to content

SSR loading svg elements #886

@agustinhaller

Description

@agustinhaller

I'm working in a @ionic/angular app with @ionic/angular-server.
I have tried both in a blank project following this tutorial and my existing code base.

In both cases when I disable javascript in the dev tools to test the SSR scenario, none ion-icon element gets rendered.

Digging into the source files I noticed you do this on purpose.

I know SSR has its limitations, but I was wondering if you believe there's a way of rendering the svg elements in the server so the icons work for server side rendered pages.

@elylucas can you point me in the right direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions