我覺得這非常的bizzare,NG-點擊不工作這個元素上,NG-點擊不工作的李
<div class="row">
<div class="col-md-12">
<div class="form-group label-floating is-empty">
<label class="control-label">category</label>
<input type="text" class="form-control" onkeydown="return false;" ng-focus="autocomplete != autocomplete" ng-blur="autocomplete != autocomplete">
<div class="autocomplete-c" ng-show="autocomplete">
<ul>
<li ng-repeat="d in categories" ng-click="selectCategory(d)">
<p>{{d.name}}</p>
<small>{{d.types}}</small>
</li>
</ul>
</div>
<span class="material-input"></span>
</div>
</div>
</div>
並將此作爲功能,
$scope.selectCategory = function(d){
console.log(d);
}
這有沒有事件觸發,我需要幫助。
發表小提琴重現問題。 –
@sabi檢查http://jsfiddle.net/mayankcpdixit/HgDA7/小提琴,它似乎沒有問題與您的代碼 – Rahul