0
我一直在嘗試使用航點的粘性extenstion,通過角JS jQuery的直通工作。 jQuery UI的直通作品一般,但我不能得到粘的工作。這是迄今爲止我嘗試過的一個很好的例子。航點粘不與角JS jQuery的直通
http://jsfiddle.net/lilacsunbird/bC5ts/
HTML:
<h2 class="my-sticky-element" ui-jq="waypoint" ui-options="sticky">Sticky
控制器:
angular.module('waypoints', ['ui']);
/* Controllers */
function WaypointsController($scope) {
$scope.sticky = 'sticky';
$scope.test = function(){
alert('You have scrolled to an entry.');
}
}
非常感謝