import image from assets on ts file angular 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
<img [src]="imageSrc" [alt]="imageAlt" />
<img src="{{imageSrc}}" alt="{{imageAlt}}" />