angular where to store images code example
Example 1: how to refrence image in dart angular
@Component(
selector: 'my-app',
template: '<img src="packages/angular_app/logo.svg">')
class AppComponent {}
Example 2: import images angular
export class sample Component implements OnInit {
imageSrc = 'assets/images/iphone.png'
imageAlt = 'iPhone'
Example 3: import images angular
<img [src]="imageSrc" [alt]="imageAlt" />
<img src="{{imageSrc}}" alt="{{imageAlt}}" />