I\'m pretty new to Angular so I\'m not sure the best practice to do this.
I used angular-cli and ng new some-project to generate a new app.
In
Angular-cli includes the assets folder in the build options by default. I got this issue when the name of my images had spaces or dashes. For example :
If you put the image in the assets/img folder, then this line of code should work in your templates :
If the issue persist just check if your Angular-cli config file and be sure that your assets folder is added in the build options.