Goal: Load an image with a dynamic source. If no image is found, then load a placeholder image instead.
This should demonstrate what I\'m trying to
getImage():string{ //I don't know how would you handle your situation here. But you can think of it. if (this.validImage) // I don't know how would you manage validImage here. { return this.validImagePath; } return this.placeholderImagePath; }