2016-09-13 3 views
0

listview URL은 다음과 같이 나타납니다 :이 내 JS에서 봐주십시오목록보기 링크 특수 기호를 포함

http://localhost/inventorymanagement/#/inventory/request/item/list 

을? :처럼 나는 readbale 형태로 변경하려면 어떻게

http://localhost/inventorymanagement/#/~2Finventory~2Frequest~2Fitem~2F/list 

을 파일.

// create an admin application 
var admin = nga.application('admin') 
    .baseApiUrl(BASE_URL); // main API endpoint 
// //create a user entity 
// //the API endpoint for this entity will be 'http://jsonplaceholder.typicode.com/users/:id 
var inventoryItem = nga.entity('/inventory/request/item/'); 
inventoryItem.listView().fields([ 
    // use the name as the link to the detail view - the edition view 

    nga.field('user_details.email').label('email'), 
    nga.field('required_quantity'), 
    nga.field('demand_date'), 
    nga.field('inventor_item_details.item_title').label('Item Title'), 
]).filters([ 
    nga.field('user_details.email') 
    .label('User Filter') 
    .pinned(true) 
]); 
admin.addEntity(inventoryItem) 
+1

여기에 js가 있습니까? – DMCISSOKHO

+0

질문을 편집하십시오, 제발 봐! –

+0

및 라우팅 용으로 사용 하시겠습니까? – DMCISSOKHO

답변

0

ng-admin은 angular-translate를 사용하여 ng-admin에서 어떻게 작동하는지보고 있습니다.

관련 문제