I am trying to load an image using [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.
HTML - <span class="pull-right"> <img [src]="sampleImage" alt="{{ user.firebaseuser.displayName }}" class="img-responsive" style="max-height: 50px;"> </span> Component class - 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() { } } Error Details - http://localhost:4200/null 404 (Not Found) What am i missing here? -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.