angular - 开始角
问题描述
初学者 Angular,我无法得到我想要的东西,我首先展示我的条目:
{"composants" : [
{"typeCarte" : "type1", "direction":"0", "fortmats":"jpeg;png;gif"},
{"typeCarte" : "type1", "direction":"1", "fortmats":"jpeg;png;gif"},
{"typeCarte" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"typeCarte" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"typeCarte" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"typeCarte" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"typeCarte" : "type1", "direction":"0", "fortmats":"jpeg;png;gif"},
{"typeCarte" : "type1", "direction":"1", "fortmats":"jpeg;png;gif"}
]}
注意:这代表 3 个卡:2 个类型 1(2 个端口)和 1 个类型 2
有了这种条目,我想用卡片创建这个表格,显示这种风格:
Configuration :
Insert :
Carte 1
'checkbox' Port0 'checkbox' Port1 (disable)
Carte 2
'checkbox' Port2 'checkbox' Port3 'checkbox' Port4 'checkbox' Port5
Carte 3
'checkbox' Port6 'checkbox' Port7 (disable)
Extract :
Carte 1
'checkbox' Port0 (disable) 'checkbox' Port1
Carte 2
'checkbox' Port2 'checkbox' Port3 'checkbox' Port4 'checkbox' Port5
Carte 3
'checkbox' Port6 (disable) 'checkbox' Port7
- 必须能够检测/分离不同的卡(我知道先验:{card of type 1 = 2 ports} 和 {card of type2 = 4 ports})
- 必须可以提供在插入中仅勾选一个框(或 0)的可能性
- 必须可以提供只勾选提取中的一两个框的可能性(或 0)
解决方案
否则,为了得到一些帮助,我也做了翻译:
I am starting with angular, and I have some difficulties with it :-/ I'll first present yous my data :
{"cardType" : "type1", "direction":"0", "fortmats":"jpeg;png;gif"},
{"cardType" : "type1", "direction":"1", "fortmats":"jpeg;png;gif"},
{"cardType" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"cardType" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"cardType" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"cardType" : "type2", "direction":"2", "fortmats":"jpeg;bmp;png;gif"},
{"cardType" : "type1", "direction":"0", "fortmats":"jpeg;png;gif"},
{"cardType" : "type1", "direction":"1", "fortmats":"jpeg;png;gif"}
]}
NB : Cela représente 3 cartes, 2 de type 1 (2 ports), et 1 de type 2
NB : These are 3 cards, 2 of the first type (2 ports) and 1 of the first one.
With this kind of inputs, I would like to create this formular with this style, by cards :
Configuration :
Insert :
Card 1
'checkbox' Port0 'checkbox' Port1 (disable)
Card 2
'checkbox' Port2 'checkbox' Port3 'checkbox' Port4 'checkbox' Port5
Card 3
'checkbox' Port6 'checkbox' Port7 (disable)
Extract :
Card 1
'checkbox' Port0 (disable) 'checkbox' Port1
Card 2
'checkbox' Port2 'checkbox' Port3 'checkbox' Port4 'checkbox' Port5
Card 3
'checkbox' Port6 (disable) 'checkbox' Port7
I need to detect/separate the differents cards (a priori : type1's cards = 2 ports ; type2's port = 4 ports)
I need to propose only one case maximum in the insert part and two maximum in the extract part.
And I need help with Angular : filters, filters creations... working with the controller ?
推荐阅读
- php - 使用没有数据库的身份验证登录
- node.js - Angular 前端不会立即更新
- java - 在个人资料活动中滚动查看
- html - 下拉菜单在点击前消失
- docker - kube-proxy 问题 - 尝试将 Windows 工作节点添加到 kubernetes 集群
- tomcat8 - Ubuntu 服务器 18.04.2 上的 Tomcat 8.5.39
- java - 如何从 github 的几个页面中获取用户存储库
- php - Laravel 无法使用 DB::getDatabaseName() 获取正确的数据库名称
- typescript - 使用 TaskTimer 每 n 秒调用一次函数
- asp.net - 为什么第二次调用 Html.Action 失败?