【发布时间】:2016-09-11 20:26:06
【问题描述】:
我正在尝试找出一种将两张图片链接在一起的理想方式。我有数百张带有标签 images 的图片,但有一些图片有 before 和 after 图片我想并排显示。
我只是不确定如何在 Cloudinary 上的 JSON 列表中或使用 Angularjs 控制器将具有 before 和 after 的图像链接在一起。
示例
{
"public_id": "Images 2/A/LUND",
"version":1463185535,
"format":"jpg",
"width":1299,
"height":1732,
"type":"upload",
"created_at":"2016-05-14T00:25:35Z",
"context":{
"custom":{
"alt":"Remodeling Stairs",
"name":"Lund Before",
"title":"Full Staircase Remodel"
}
}
},
{
"public_id": "Images 2/A/LUND",
"version":1463185535,
"format":"jpg",
"width":1299,
"height":1732,
"type":"upload",
"created_at":"2016-05-14T00:25:35Z",
"context":{
"custom":{
"alt":"Remodeling Stairs",
"name":"Lund After",
"title":"Full Staircase Remodel"
}
}
},
我正在使用 Angularjs ng-repeat 来显示 after 图片,但我有一个 ng-click() 来显示模式。在模态中,我想显示 before 和 after 图片。
如何尝试将前图与后图链接或绑定?这可以通过 Cloudinary 标记来完成吗?或者在角度控制器中执行此操作的方法?
【问题讨论】:
标签: angularjs json cloudinary