best way to use images in angular code example
Example 1: how to render images in angulae
use the url as below
<img src="assets/img.jpg" alt="">
Example 2: import images angular
export class sample Component implements OnInit {
imageSrc = 'assets/images/iphone.png'
imageAlt = 'iPhone'