Skip to content

svg icon registration doesn't work on server platform #6787

@alirezamirian

Description

@alirezamirian

Bug, feature request, or proposal:

Bug: svg icons doesn't work on server.

What is the expected behavior?

It should work on server too.

What is the current behavior?

Icon registration is tightly coupled with DOM and depends on document to be available which breaks its compatibility with server platform.

What are the steps to reproduce?

Use svg icons on server platform.

What is the use-case or motivation for changing an existing behavior?

It feels quite normal to have svg icons work on server.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

@angular/[email protected]

Is there anything else we should know?

Nope.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthelp wantedThe team would appreciate a PR from the community to address this issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions