question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Every time i have to re-compile the code if i refer to a new image from assets folder

See original GitHub issue

I’m submitting a Issue regarding img tag


[x] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior

I have some image paths from db which is coming on Angular side dynamically. Every time there is a new image, I have to re-compile the angular code other wise it gives 404 Resource Not Found error. This is really annoying.

Expected behavior

Ideally there must be no need to re-compile the code for every new image.

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

If we have tag in our html file and it is getting image src dynamically, so for every new image we have to re-compile the code and then it will get the image, otherwise it will give 404 Resource Not Found error.

Environment


Angular version: 6.1.5


Browser:
- [x] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: 8.11.4  
- Platform: Windows 

Others:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ericmartinezrcommented, Sep 13, 2018

Hello, we reviewed this issue and determined that it doesn’t fall into the bug report or feature request category. This issue tracker is not suitable for support requests, please repost your issue on StackOverflow using tag angular.

If you are wondering why we don’t resolve support issues via the issue tracker, please check out this explanation.


Not related to angular. Barely likely to be angular-cli’s issue.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 14, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular - Avoid to recompile on file upload in assets folder
Each time I test the application and I upload an image the node server recompiles the app and reloads the browser. Is there...
Read more >
How to Use Images in Symfony 6 - YouTube
This video will show you how you can compile your images from the assets folder to the public folder in Symfony 6 -...
Read more >
Images not loading from assets folder in Angular
Angular resolves this problem for you, and in a component, you have to only add a path to the assets folder, instead of...
Read more >
Documentation | U.S. Web Design System (USWDS)
To start, reference either uswds.css or uswds.min.css in the <head> of your document. Find this file in /dist/css . Most projects will want...
Read more >
Refreshing the Asset Database - Unity - Manual
It post-processes all of the Assets for the imported code-related files ... scans the Assets and Packages folders in your Project to check...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found