salix/client/item/routes.json

49 lines
1.2 KiB
JSON

{
"module": "item",
"name": "Items",
"icon": "/static/images/icon_item.png",
"routes": [
{
"url": "/item",
"state": "item",
"abstract": true,
"component": "ui-view"
},
{
"url": "/list",
"state": "item.index",
"component": "vn-item-list"
}, {
"url": "/create",
"state": "item.create",
"component": "vn-item-create"
}, {
"url": "/:id",
"state": "item.card",
"abstract": true,
"component": "vn-item-card"
}, {
"url" : "/data",
"state": "item.card.data",
"component": "vn-item-data",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Basic data",
"icon": "folder"
}
}, {
"url" : "/image",
"state": "item.card.image",
"component": "vn-item-image",
"params": {
"item": "$ctrl.item"
},
"menu": {
"description": "Images",
"icon": "image"
}
}
]
}