1

这是我的表格..

div.form(name='customerFrm')
label.fa.fa-search.search-icon(data-ng-click= "customer(obj._id)", typeahead-match) 

input.form-control.search(type='text', ng-model='selected', typeahead-on-select= "customerSearch()")

这是我用于 Angular Bootstrap 的插件。

第一个文件..

a(tabindex='-1', bind-html-unsafe='match.model.name | typeaheadHighlight:query', ng-href='account.html#!/abc/{{match.model._id}}')  

这是第二个文件..

ul.dropdown-menu(aria-hidden='{{!isOpen()}}', role='listbox', style='display: block;', 
        ng-style='{top: position.top+"px", left: position.left+"px"}', ng-if='isOpen()')

li(role='option', ng-click='selectMatch($index)', ng-mouseenter='selectActive($index)',
        ng-class='{active: isActive($index) }', ng-repeat='match in matches track by $index')
div(template-url='templateUrl', query='query', match='match', index='$index',
        typeahead-match='')

使用第一个文件它返回我......

href="account.html#!/abc/ 

路径,但不是它的 ID。所以请给我一个解决方案,如何使用它的 id 重定向到页面。

4

0 回答 0