在 angular 中加载图像时显示加载图标

Display loading icon while images loads in angular

我有一组卫星图像动画,按钮控件使用 angular。我想在每个图像的图像完全加载时显示一个图标加载,然后隐藏加载图标。

请问有什么办法吗?

live code here

这个答案也许可以帮助你,我认为 loadstart 有问题,因为它也不能在我简单的 HTML javascript 环境 Codepen 中工作。不知道MDN文档怎么用