scrollTo.js 330 Bytes
angular.module('scrollTo', []).directive('scrollTo', function () {
    return {
        scope: { scrollTo: '=' },
        link: function (scope, element) {
            setTimeout(function () {
                $(element).scrollTo('[scroll-point="' + scope.scrollTo + '"]', {offset: -120});
            }, 0);
        },
    };
});