Check out example codes for "import images angular". It will help you in understanding the concepts better.

Code Example 1

<img alt="xxx" class="xxx" src="https://xxx/128x128.png">
  -- Property binding with [] around the property to be bound
						  [src]= "accountInfo.profiles[0].image" 
  --interpolation binding syntax
						   src= "{{accountInfo.profiles[0].image}}" 

Code Example 2

<img [src]="imageSrc" [alt]="imageAlt" />

<img src="{{imageSrc}}" alt="{{imageAlt}}" />

Code Example 3

export class sample Component implements OnInit {
   imageSrc = 'assets/images/iphone.png'  
   imageAlt = 'iPhone'

Learn ReactJs, React Native from