Conditional Image Src Binding in angular 2
[src]="item.pictureUrl!= null ? item.pictureUrl : myImgUrl"
then in your .ts
export class App{
myImgUrl:string='~/images/logo.png';
}
[src]="item.pictureUrl ? item.pictureUrl : 'assets/img/logo.png'"
Maybe better way is to keep your images in assets folder: assets/img/logo.png