如果图像src在nativescript angular中无效,如何设置默认图像

问题描述 投票:0回答:1

如何设置默认图像如果图像src在带有angualr2的nativescript中失败

我尝试了很多次,但我无法设置默认图像。这是我的代码

任何人都知道解决这个问题的答案请帮帮我

angular2-nativescript
1个回答
0
投票

您可以使用此plugin它具有您可以使用的功能

failureImageUri =“你的网址”

© www.soinside.com 2019 - 2024. All rights reserved.