UI-Router-Breadcrumbs Angular JS



我正在使用symfony 2开发角度JS应用程序,并且正在尝试修改现有代码。我想展示面包屑。当前代码 :

.state('app.marketplace.buyersedit', {
url: '/buyers/edit/:id',
templateUrl: '/bundles/ubidelectricity/js/components/Buyer/buyer_form.html',
title: 'content.list.EDITBUYER',
ncyBreadcrumb: {
label: 'content.list.EDITBUYER'
},
resolve: loadSequence('BuyerFormCtrl', 'buyerService', 'buyerTypeService', 'countryService', 'languageService', 'regionService', 'userService', 'categoryService', 'languageService', 'ui.select', 'monospaced.elastic', 'touchspin-plugin', 'checklist-model', 'ckeditor-plugin', 'ckeditor')
}).state('app.marketplace.buyersdetails', {
url: '/buyers/details/:id',
templateUrl: '/bundles/ubidelectricity/js/components/Buyer/buyer.html',
ncyBreadcrumb: {
label: 'content.list.BUYERDETAILS'
},
resolve: loadSequence('BuyerCtrl', 'buyerService')
}

如何显示面包屑?

ncyBreadcrumb: {
label: '{{content.list.BUYERDETAILS}}'
}

使用括号而不是引号

最新更新