I\'m pretty new to Angular so I\'m not sure the best practice to do this.
I used angular-cli and ng new some-project to generate a new app.
ng new some-project
In
In my project I am using the following syntax in my app.component.html:
or
use [src] as a template expression when you are binding a property using interpolation:
is the same as:
Source: how to bind img src in angular 2 in ngFor?