Blame view
resources/js/common/directives/scrollTo.js
330 Bytes
e77200db5 Initial commit |
1 2 3 4 5 6 7 8 9 10 |
angular.module('scrollTo', []).directive('scrollTo', function () { return { scope: { scrollTo: '=' }, link: function (scope, element) { setTimeout(function () { $(element).scrollTo('[scroll-point="' + scope.scrollTo + '"]', {offset: -120}); }, 0); }, }; }); |