[src]
attribute in Angular application. The image content renders fine outside when i load it up directly. However, with the app it gives me 404 null error.<span class="pull-right">
<img
[src]="sampleImage"
alt="{{ user.firebaseuser.displayName }}"
class="img-responsive"
style="max-height: 50px;">
</span>
export class UserItemComponent implements OnInit {
@Input() user: any;
// @Input() index: number;
sampleImage = 'https://americana-group.com/app/uploads/2017/11/koki1920x960-1048x524.jpg';
constructor() { }
ngOnInit() {
}
}
http://localhost:4200/null 404 (Not Found)