Here is my below code
I am doing only if then else condition i want to do if else if if condition based on three value i want to change the image
<img [src]="status.getRequestStatus() == 'granted' ? 'assets/imgs/trafficlight_green.png':'assets/imgs/trafficlight_red.png' " class="image--background" >
this is for if and else condition i want to add if else if if
like if(new){someimage}else if(new1){some image1} if(new2){some image2}
[(src)]="sourceProperty"changes based on that, and I would deffenitly move that logic to the component from the view, and on the status.getRequestStatus() you can set the property based on the result..