angular-docs-cn/public/resources/js/directives/scroll-y-offset-element.js

5 lines
170 B
JavaScript

angularIO.directive('scrollYOffsetElement', ['$anchorScroll', function($anchorScroll) {
return function(scope, element) {
$anchorScroll.yOffset = element;
};
}]);