Angularjs uib typeahead显示未定义
以下是我的html:Angularjs uib typeahead显示未定义,angularjs,angular-ui-bootstrap,ui.bootstrap,Angularjs,Angular Ui Bootstrap,Ui.bootstrap,以下是我的html: <div class="input-group"> <span class="input-group-addon"><%= fa_icon "search" %></span> <input type="text" class="form-control" placeholder="Search" ng-model="selectedFirm" uib-typeahead="n as n.message for
<div class="input-group">
<span class="input-group-addon"><%= fa_icon "search" %></span>
<input type="text" class="form-control" placeholder="Search" ng-model="selectedFirm" uib-typeahead="n as n.message for notification in notifications|filter:$viewValue">
</div>
每当我输入typeahead时,结果都会以正确的方式过滤,但只显示undefined而不是消息
我使用的是AngularJSV1.4.9和ui.bootstrap版本:1.1.2
class NavbarController
constructor: ($scope) ->
$scope.notifications_open = false
$scope.notifications = [
{message:'hey'},
{message:'hello'},
{message:'hola'}
]