I have recently started learning angular 4 and came up with a very basic issue. I tried giving path of an image in the img tag but got the following error
Unable to open 'image.png': no provider for c:/Surbhi/MyPractice/image.png. Code snippet is given below.
<div style="text-align:center">
<h1>
Welcome to {{ title }}!
</h1>
<img width="300" alt="Angular Logo" src="C:\Surbhi\MyPractice\image.png">
</div>
<h2>ABC </h2>
<ul>
<li>
<h2><a target="_blank" rel="noopener" href="https://angular.io/tutorial">Tour of Heroes</a></h2>
</li>
<li>
<h2><a target="_blank" rel="noopener" href="https://github.com/angular/angular-cli/wiki">CLI Documentation</a></h2>
</li>
<li>
<h2><a target="_blank" rel="noopener" href="https://blog.angular.io/">Angular blog</a></h2>
</li>
</ul>