Sha256: 446fd6872e8d889ad0868f1c7afd174d21a7430138585ba2d94ace66f7aaa275
Contents?: true
Size: 437 Bytes
Versions: 10
Compression:
Stored size: 437 Bytes
Contents
module = angular.module('maestrano.components.mno-scroll-to',['maestrano.assets']) module.directive('mnoScrollTo', ['$location', '$anchorScroll', ($location, $anchorScroll) -> return { restrict: 'A' scope: mnoScrollTo: '@' link: (scope, element, attrs) -> element.on "click", (event) -> event.preventDefault() $location.hash(scope.mnoScrollTo) $anchorScroll() } ])
Version data entries
10 entries across 10 versions & 1 rubygems