What's better to use in Angular - src or [src]

Discussão em 'Angular' iniciado por user7209780, Outubro 27, 2024.

  1. user7209780

    user7209780 Guest

    Just want to ask what is recommended to use with Angular, standard html src or Angular [src]? And why?

    Edit: I have following code in my html component:

    <img class="logo" src="../app/media/appLogo.png">


    It is fine? If not, how should I change it to work together with [src]?

    Edit2: Is there any other, better way to do it, instead of plain html src? Or this is the best solution actually?

    Continue reading...

Compartilhe esta Página