我想在可滾動的AngularJS視圖中使用Waypoints,但它不工作。我正在嘗試使用ui.utils jQuery Passthrough,但沒有任何反應。這是我到目前爲止有:在AngularJS視圖中使用Waypoints.js
<body>
<div id="wrapper">
<div id="nav-menu">
<...>
</div>
<div id="main" class="main">
<div ng-view></div>
</div>
</div>
</body>
我使用下面的模板的觀點:
<div class="fullScreenImage"></div>
<div ui-jq="waypoint" ui-options="test">test</div>
和我的控制器看起來是這樣的:
app.controller('myController', ['$scope',
function ($scope) {
$scope.test = function(){
alert('You have scrolled to an entry.');
}}]);
我主要元素是可滾動的,但窗口不是。設置passthrough到主div會觸發測試功能,但我需要它在模板內。有什麼建議麼?