I need a button in Angular. For this button I will set a image (icon) by binding. On hover the image should change. On event onMouseOut it should set back to the binded image.
Using the event onMouseOut I get the error
NG8002: Can't bind to 'onMouseOut' since it isn't a known property of 'input'.
I tried
- <button src='...
- <button ..><img ...
- <input type="image" ...
and get allways the same error.
How can I use the onMouseOut with binding on a angular button.
<input type="image" onclick="onUp()"
src="/assets/icons/{{imgUp}}.png"
onMouseOver="this.src='/assets/icons/up-hover.png'"
onMouseOut="this.src='/assets/icons/{{imgUp}}.png'" />