Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angularjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angularjs uib typeahead显示未定义_Angularjs_Angular Ui Bootstrap_Ui.bootstrap - Fatal编程技术网

Angularjs uib typeahead显示未定义

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

以下是我的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 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'}
      ]