Skip to content

docs: fix SVG icon example on Stackblitz #21429

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 7, 2021

Conversation

crisbeto
Copy link
Member

The SVG icon examples 404s when opened on Stackblitz due to an old issue with static assets. These changes switch to using an icon literal so that we don't have to fetch the icon.

Fixes #16484.

The SVG icon examples 404s when opened on Stackblitz due to an old issue with
static assets. These changes switch to using an icon literal so that we don't have to
fetch the icon.

Fixes angular#16484.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent docs This issue is related to documentation merge safe target: patch This PR is targeted for the next patch release labels Dec 23, 2020
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 23, 2020
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Jan 5, 2021
@annieyw annieyw merged commit e35cee0 into angular:master Jan 7, 2021
annieyw pushed a commit that referenced this pull request Jan 7, 2021
The SVG icon examples 404s when opened on Stackblitz due to an old issue with
static assets. These changes switch to using an icon literal so that we don't have to
fetch the icon.

Fixes #16484.

(cherry picked from commit e35cee0)
wagnermaciel pushed a commit to wagnermaciel/components that referenced this pull request Jan 14, 2021
The SVG icon examples 404s when opened on Stackblitz due to an old issue with
static assets. These changes switch to using an icon literal so that we don't have to
fetch the icon.

Fixes angular#16484.
@philip-sultanescu
Copy link

@crisbeto Hey there, I talked to Eric from StackBlitz about this problem and he solved it about 3 weeks ago, almost at the same time you made this change.

StackBlitz also allows linking to other assets like images now (which didn't work before) and can even preview them in the browser.

See here: https://stackblitz.com/edit/angular-ahvbuu?file=src/app/icon-svg-example.ts

So you may revert this commit :)

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement docs This issue is related to documentation P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MatIcon svgIcon demo doesn't work on Stackblitz
4 participants