I'm trying to use the jQuery scollsnap plugin in AngularJS, and have tried following the guide from this other post. However, it neither gives an error nor does it work.
This is what I had.
App.directive('scrollsnap', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
angular.element(element).scrollsnap({ snaps: 'section' });
}
};
});
And in my HTML:
<body scrollsnap class="... ... ...>