小编Ace*_*r79的帖子

iframe src 属性作为动态 Angular2 的 URL

我花了很长时间试图弄清楚如何动态更改 iframe src 中的 URL。我尝试设置变量,然后使用字符串插值,但没有成功。

关于我如何做到这一点的任何建议。如果可以的话,也许可以举一些例子。

我正在尝试的示例代码;

src="https://www.wheehouse.org/company/PriceMin={{ this.itemMinimum }}&PriceMax={{ this.itemMaximum }}&BedRange={{ this.itemBedRoomType }}-0&BathRange={{ this.itemBathType }}-0"
Run Code Online (Sandbox Code Playgroud)

谢谢。

html iframe angular ionic4

3
推荐指数
2
解决办法
7677
查看次数

标签 统计

angular ×1

html ×1

iframe ×1

ionic4 ×1