Is there a way to detect a request error in Angular 2 property bindings that make Http requests, like [link] and [src].
My situation is I have an object with
{
local: '/images/abc.jpg',
remote: 'http://linkToImage.jpg'
}
And the template
<img [src]="local">
So I'm trying to point to remote
when local
returns a 404
or request error.