我尝试在select标签中显示我的数据,但没有成功,这就是我在app.js中的内容
routeAppControllers.controller('WelcomeController', ['$scope','$http', function($scope, $http)
{
$scope.venueName = {};
$scope.venuesName =["elt1","elt2"]
});
}
]);
并在我的twig文件中
<ui-select ng-model="venueName.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px;">
<ui-select-match placeholder="Select a venue in the list ...">{{$select.selected}}</ui-select-match>
<ui-select-choices repeat="venueName in venuesName | propsFilter: {$select.search}">
<div ng-bind-html="venueName | highlight: $select.search"></div>
<small>
{{venueName}}
</small>
</ui-select-choices>
</ui-select>
我可以看到带有研究输入的select标签,但没有元素 任何帮助,请
答案 0 :(得分:1)
如果有人对此感兴趣,可以给出答案
<ui-select ng-model="venueName.selected" theme="select2" ng-disabled="disabled" style="min-width: 300px; padding-top:10px;">
<ui-select-match placeholder="Select a venue in the list ...">{{$select.selected.name}}</ui-select-match>
<ui-select-choices repeat="venueName in venuesName | propsFilter: {name: $select.search}">
<div ng-click='go(venueName.name)'>{{venueName.name}}</div>
</ui-select-choices>
</ui-select>