Answers for "where put images in angular project"

1

import images angular

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

<img src="{{imageSrc}}" alt="{{imageAlt}}" />
Posted by: Guest on October-12-2020
1

import images angular

export class sample Component implements OnInit {
   imageSrc = 'assets/images/iphone.png'  
   imageAlt = 'iPhone'
Posted by: Guest on October-12-2020

Code answers related to "where put images in angular project"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language